-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 #32871
Merged
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
7cb815a
sdk: Add concurrent support for rand 0.7 and 0.8
joncinque 0821cb7
Update rand, rand_chacha, and getrandom versions
joncinque 4c99792
Run command to replace `gen_range`
joncinque bdb5465
sdk: Fix users of older `gen_range`
joncinque 2e9c550
Replace `hash::new_rand` with `hash::new_with_thread_rng`
joncinque 9a0a8ec
perf: Use `Keypair::new()` instead of `generate`
joncinque 5d67cfc
Use older rand version in zk-token-sdk
joncinque 6b8f63e
program-runtime: Inline random key generation
joncinque d4a6f09
bloom: Fix clippy warnings in tests
joncinque 53d12e3
streamer: Scope rng usage correctly
joncinque 79fb8d3
perf: Fix clippy warning
joncinque c8c1059
accounts-db: Map to char to generate a random string
joncinque b87dd11
Remove `from_secret_key_bytes`, it's just `keypair_from_seed`
joncinque 775da77
ledger: Generate keypairs by hand
joncinque cab9648
ed25519-tests: Use new rand
joncinque 2c99f5f
runtime: Use new rand in all tests
joncinque 05bb142
gossip: Clean up clippy and inline keypair generators
joncinque 6bf9c1d
core: Inline keypair generation for tests
joncinque f21bd05
Push sbf lockfile change
joncinque 0b10db3
sdk: Sort dependencies correctly
joncinque 3b2597c
Remove `hash::new_with_thread_rng`, use `Hash::new_unique()`
joncinque 37bb533
Use Keypair::new where chacha isn't used
joncinque 147c1e9
sdk: Fix build by marking rand 0.7 optional
joncinque db48acc
Hardcode secret key length, add static assertion
joncinque 39b5adf
Unify `getrandom` crate usage to fix linking errors
joncinque fd77bc2
bloom: Fix tests that require a random hash
joncinque 884dc52
Remove some dependencies, try to unify others
joncinque 2b45df5
Remove unnecessary uses of rand and rand_core
joncinque 295023a
Update lockfiles
joncinque 7099108
Add back some dependencies to reduce rebuilds
joncinque 2e09e57
Increase max rebuilds from 14 to 15
joncinque 9d44709
frozen-abi: Remove `getrandom`
joncinque 2b00f23
Bump rebuilds to 17
joncinque 4718c51
Remove getrandom from zk-token-proof
joncinque 7054869
Merge branch 'master' into rand8
joncinque File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol...
Hash::new_unique()
is broken. it should be hashing the counter, not using it straight up 🙃There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can try changing it to that and see if the bloom filter test passes. On the flipside, and I might be understanding this wrong, but it seems like the test is meant for random hashes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nah don't mess with it here