solana/accounts-db/src
Jon Cinque 0fe902ced7
Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871)
* sdk: Add concurrent support for rand 0.7 and 0.8

* Update rand, rand_chacha, and getrandom versions

* Run command to replace `gen_range`

Run `git grep -l gen_range | xargs sed -i'' -e 's/gen_range(\(\S*\), /gen_range(\1../'

* sdk: Fix users of older `gen_range`

* Replace `hash::new_rand` with `hash::new_with_thread_rng`

Run:
```
git grep -l hash::new_rand | xargs sed -i'' -e 's/hash::new_rand([^)]*/hash::new_with_thread_rng(/'
```

* perf: Use `Keypair::new()` instead of `generate`

* Use older rand version in zk-token-sdk

* program-runtime: Inline random key generation

* bloom: Fix clippy warnings in tests

* streamer: Scope rng usage correctly

* perf: Fix clippy warning

* accounts-db: Map to char to generate a random string

* Remove `from_secret_key_bytes`, it's just `keypair_from_seed`

* ledger: Generate keypairs by hand

* ed25519-tests: Use new rand

* runtime: Use new rand in all tests

* gossip: Clean up clippy and inline keypair generators

* core: Inline keypair generation for tests

* Push sbf lockfile change

* sdk: Sort dependencies correctly

* Remove `hash::new_with_thread_rng`, use `Hash::new_unique()`

* Use Keypair::new where chacha isn't used

* sdk: Fix build by marking rand 0.7 optional

* Hardcode secret key length, add static assertion

* Unify `getrandom` crate usage to fix linking errors

* bloom: Fix tests that require a random hash

* Remove some dependencies, try to unify others

* Remove unnecessary uses of rand and rand_core

* Update lockfiles

* Add back some dependencies to reduce rebuilds

* Increase max rebuilds from 14 to 15

* frozen-abi: Remove `getrandom`

* Bump rebuilds to 17

* Remove getrandom from zk-token-proof
2023-08-21 19:11:21 +02:00
..
account_storage
accounts_db
append_vec Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00
epoch_accounts_hash
tiered_storage Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00
account_info.rs
account_overrides.rs
account_rent_state.rs
account_storage.rs
accounts.rs Add docs to load_by_program_slot() (#32896) 2023-08-18 19:11:42 -04:00
accounts_cache.rs Fix write cache size grow/shrink bug (#32788) 2023-08-14 10:11:09 -07:00
accounts_db.rs Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00
accounts_file.rs
accounts_hash.rs update comment (#32919) 2023-08-21 10:04:37 -07:00
accounts_index.rs Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00
accounts_index_storage.rs
accounts_partition.rs
accounts_update_notifier_interface.rs
active_stats.rs
ancestors.rs
ancient_append_vecs.rs Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00
append_vec.rs Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00
blockhash_queue.rs
bucket_map_holder.rs
bucket_map_holder_stats.rs
cache_hash_data.rs Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00
cache_hash_data_stats.rs refactor cache hash data stats (#32884) 2023-08-18 09:24:59 -07:00
contains.rs
epoch_accounts_hash.rs
hardened_unpack.rs Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00
in_mem_accounts_index.rs Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00
inline_spl_token.rs
inline_spl_token_2022.rs
lib.rs
nonce_info.rs
partitioned_rewards.rs
pubkey_bins.rs
read_only_accounts_cache.rs Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00
rent_collector.rs
rent_debits.rs
rolling_bit_field.rs
secondary_index.rs
shared_buffer_reader.rs
sorted_storages.rs
stake_rewards.rs Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00
storable_accounts.rs
tiered_storage.rs TieredStorage struct (5/N) -- tests for write_accounts (#32850) 2023-08-18 11:29:53 -07:00
transaction_error_metrics.rs
transaction_results.rs
verify_accounts_hash_in_background.rs
waitable_condvar.rs