solana/programs/sbf/rust
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
..
128bit ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
128bit_dep ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
alloc ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
alt_bn128 Add alt_bn128 syscall tests (and fix related issues) (#31436) 2023-05-22 14:05:10 -07:00
big_mod_exp chore: workspace inheritance (#30939) 2023-03-29 03:28:56 +00:00
call_depth chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
caller_access chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
curve25519 chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
custom_heap ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
dep_crate chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
deprecated_loader ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
dup_accounts ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
error_handling chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
external_spend ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
finalize chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
get_minimum_delegation chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
inner_instruction_alignment_check ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
instruction_introspection ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
invoke programs: change `borrow_mut` -> `borrow` in two places in test (#31399) 2023-05-05 13:08:17 +02:00
invoke_and_error chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
invoke_and_ok chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
invoke_and_return chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
invoked ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
iter ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
log_data chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
many_args ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
many_args_dep ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
mem ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
membuiltins chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
noop chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
panic ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
param_passing chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
param_passing_dep ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
rand Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00
realloc Account data direct mapping (#28053) 2023-04-29 06:54:39 +10:00
realloc_invoke chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
ro_account_modify chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
ro_modify chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
sanity ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
secp256k1_recover ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
sha chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
sibling_inner_instruction ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
sibling_instruction chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
simulation ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
spoof1 chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
spoof1_system ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
sysvar fix sbf sysvar test (#32803) 2023-08-21 09:49:48 -06:00
upgradeable chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
upgraded chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00