solana/runtime/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
..
accounts_background_service Standardizes datapoints in AccountsBackgroundService's StatsManager (#32310) 2023-06-28 13:00:46 -04:00
bank Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00
serde_snapshot Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00
snapshot_package Renames AccountsPackageType to AccountsPackageKind (#32908) 2023-08-21 13:00:00 -04:00
snapshot_utils Move accounts-db code to its own crate (#32766) 2023-08-09 13:03:36 -07:00
accounts_background_service.rs Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00
bank.rs fix sbf sysvar test (#32803) 2023-08-21 09:49:48 -06:00
bank_client.rs Remove improper uses of &Arc<Bank> (#32802) 2023-08-18 16:46:34 -05:00
bank_forks.rs Renames SnapshotRequestType to SnapshotRequestKind (#32907) 2023-08-21 07:12:20 -04:00
bank_utils.rs Move accounts-db code to its own crate (#32766) 2023-08-09 13:03:36 -07:00
builtins.rs Refactor - Merges `BuiltinPrograms` into `LoadedPrograms` (#31654) 2023-05-18 22:18:28 +02:00
commitment.rs refactor: highest_cluster_confirmed_root -> highest_super_majority_root (#31619) 2023-05-14 00:42:03 -07:00
epoch_rewards_hasher.rs Move accounts-db code to its own crate (#32766) 2023-08-09 13:03:36 -07:00
epoch_stakes.rs Add ancestor hashes to state machine (#31627) 2023-05-13 02:05:44 -07:00
genesis_utils.rs stake: Rename `StakeStateWithFlags` -> `StakeStateV2` (#32795) 2023-08-11 01:07:21 +02:00
inline_spl_associated_token_account.rs
lib.rs Move accounts-db code to its own crate (#32766) 2023-08-09 13:03:36 -07:00
loader_utils.rs
non_circulating_supply.rs Remove improper uses of &Arc<Bank> (#32802) 2023-08-18 16:46:34 -05:00
prioritization_fee.rs report less datapoints to block_min_prioritization_fee (#30017) 2023-02-01 11:32:36 -06:00
prioritization_fee_cache.rs Remove improper uses of &Arc<Bank> (#32802) 2023-08-18 16:46:34 -05:00
root_bank_cache.rs Remove improper uses of &Arc<Bank> (#32802) 2023-08-18 16:46:34 -05:00
runtime_config.rs Cleanup - Removes the CLI option "no-bpf-jit" (#31329) 2023-04-25 19:04:11 +02:00
serde_snapshot.rs Move accounts-db code to its own crate (#32766) 2023-08-09 13:03:36 -07:00
snapshot_archive_info.rs
snapshot_bank_utils.rs Renames AccountsPackageType to AccountsPackageKind (#32908) 2023-08-21 13:00:00 -04:00
snapshot_config.rs Split snapshot_utils.rs into snapshot_bank_utils.rs (#32612) 2023-07-24 16:31:03 -07:00
snapshot_hash.rs Renames AccountsHashEnum to AccountsHashKind (#32904) 2023-08-21 10:34:56 -04:00
snapshot_minimizer.rs Move accounts-db code to its own crate (#32766) 2023-08-09 13:03:36 -07:00
snapshot_package.rs Renames AccountsPackageType to AccountsPackageKind (#32908) 2023-08-21 13:00:00 -04:00
snapshot_utils.rs Renames SnapshotType to SnapshotKind (#32906) 2023-08-19 19:55:29 -04:00
stake_account.rs stake: Rename `StakeStateWithFlags` -> `StakeStateV2` (#32795) 2023-08-11 01:07:21 +02:00
stake_history.rs
stake_weighted_timestamp.rs
stakes.rs Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00
static_ids.rs Move accounts-db code to its own crate (#32766) 2023-08-09 13:03:36 -07:00
status_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
transaction_batch.rs Make prepare_simulation_batch() more usable (#32304) 2023-06-29 11:20:42 +09:00
transaction_priority_details.rs cleanup feature: Use default units per instruction in fee calculation (#32570) 2023-07-21 18:37:58 -05:00
vote_account.rs Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00
vote_parser.rs refactor to remove additional is_simple_vote check (#30521) 2023-02-24 23:49:04 -06:00
vote_sender_types.rs
vote_transaction.rs vote: encapsulate `Lockout` (#29753) 2023-01-18 19:28:28 -07:00