solana/sdk/program/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
..
message Bump bitflags from 1.3.2 to 2.3.3 (#32438) 2023-07-24 12:56:55 +00:00
nonce
stable_layout
stake stake: Rename `StakeStateWithFlags` -> `StakeStateV2` (#32795) 2023-08-11 01:07:21 +02:00
syscalls Simd 47 syscall sysvar last restart slot (#31957) 2023-06-16 20:14:02 +00:00
sysvar Preliminary Changes for Updating Cargo (#32547) 2023-07-21 13:43:00 -07:00
vote Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00
wasm
account_info.rs
address_lookup_table_account.rs
alt_bn128.rs Add alt_bn128 syscall tests (and fix related issues) (#31436) 2023-05-22 14:05:10 -07:00
atomic_u64.rs
big_mod_exp.rs
blake3.rs
borsh.rs sdk: Limited Borsh 0.9 support (Pubkey and helpers) (#32511) 2023-08-02 23:15:24 +02:00
borsh0_9.rs sdk: Limited Borsh 0.9 support (Pubkey and helpers) (#32511) 2023-08-02 23:15:24 +02:00
borsh0_10.rs sdk: Limited Borsh 0.9 support (Pubkey and helpers) (#32511) 2023-08-02 23:15:24 +02:00
bpf_loader.rs
bpf_loader_deprecated.rs
bpf_loader_upgradeable.rs
clock.rs
debug_account_data.rs
decode_error.rs
ed25519_program.rs
entrypoint.rs Preliminary Changes for Updating Cargo (#32547) 2023-07-21 13:43:00 -07:00
entrypoint_deprecated.rs
epoch_rewards.rs Add epoch_reward sysvar (#32049) 2023-06-14 08:41:26 -05:00
epoch_schedule.rs
example_mocks.rs Removes unnecessary default() (#32477) 2023-07-13 13:59:57 -04:00
feature.rs
fee_calculator.rs
hash.rs
incinerator.rs
instruction.rs Update documentation of instruction error and add a unit test (#30915) 2023-03-28 11:54:49 -07:00
keccak.rs
lamports.rs
last_restart_slot.rs Simd 47 syscall sysvar last restart slot (#31957) 2023-06-16 20:14:02 +00:00
lib.rs stake: deprecate on chain warmup/cooldown rate and config (#32723) 2023-08-07 13:23:24 -07:00
loader_instruction.rs
loader_upgradeable_instruction.rs
loader_v4.rs Refactor - Renames loader-v3 to loader-v4. (#31570) 2023-05-11 08:29:06 +02:00
loader_v4_instruction.rs Refactor - Renames loader-v3 to loader-v4. (#31570) 2023-05-11 08:29:06 +02:00
log.rs
native_token.rs
program.rs
program_error.rs Feature gate builtin consumes static units during processing instruction (#30702) 2023-03-24 11:31:01 -05:00
program_memory.rs
program_option.rs
program_pack.rs
program_stubs.rs Simd 47 syscall sysvar last restart slot (#31957) 2023-06-16 20:14:02 +00:00
program_utils.rs
pubkey.rs sdk: Limited Borsh 0.9 support (Pubkey and helpers) (#32511) 2023-08-02 23:15:24 +02:00
rent.rs feature flag cleanup: stake_split_uses_rent_sysvar (#32407) 2023-07-07 09:01:39 -05:00
sanitize.rs
secp256k1_program.rs
secp256k1_recover.rs
serde_varint.rs Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00
serialize_utils.rs
short_vec.rs
slot_hashes.rs
slot_history.rs
stable_layout.rs
stake_history.rs
system_instruction.rs Bump borsh to 0.10.3 (#30975) 2023-05-30 23:33:21 +02:00
system_program.rs