-
Notifications
You must be signed in to change notification settings - Fork 180
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
[randomness final part] Update math/rand
usage
#4052
Merged
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
0e87757
Go 1.20
SaveTheRbtz 026312d
Update golangci-lint
Kay-Zee 85dcdc7
Merge branch 'master' into rbtz/go1.20
SaveTheRbtz a0e3434
replace math/rand in production code - remove depriacted functions in…
93b68dc
update crypto math/rand usage
92ea84b
merge master branch
9d19b51
add tests for new package utils/rand
92fdcae
fix more errors
5e2b255
more linter errors
5b58584
fix more linter errors
2b00584
1.20 never ending linter errors
2d315c0
merge master
5d1a431
update bootstrap beacon KG and fix integration errors
6f76e40
Revert "Update golangci-lint"
cd908b8
Revert "Go 1.20"
12f6663
more fixing
4377369
log error in pool random ejection and fallback to LRU
1533c2d
Merge branch 'master' into tarak/go1.20-rand-prep
tarakby 4919ba3
fix import order
07dce62
fix a new issue after merging master
77d83f0
improve unsafeRandom test for randomness and add determinicity test
361bbb7
merge master
910c04c
remove added spaces
0bebc15
minor cleanups
eb36425
merge master and fix conflicts
cb1db83
fix merging bug
f726c2e
merge master
0a0e4e5
remove one more usage of math/rand in engine/execution
db663e3
avoid using math/rand in NewExponentialBackoff
ac5302b
Merge branch 'master' into tarak/go1.20-rand-prep
tarakby 908212f
clean up and comment updates
5a1bca3
use Throw to bubble the error up
tarakby 3c2f5bd
fix logic change in identity list sample
14df98f
fix returning before unlock and add warning log when randomness fails
4820fa6
add check for math/rand usage in production code
0112864
merge master
e3447dc
add exclude-dir so that GNU grep matches BSD grep for go-math-rand-check
54a6803
add tmate for remote debugging
d9ae9eb
merge master
3a3b8ba
fix merging bug
67b4390
add error description for newSource()
1f1a341
revert LRUEjector and remove random ejection fallback
183ce49
use fatal logging when system randomness fails
a2f5f4b
update grep command to work for different grep versions and remove tmate
8e21991
Merge branch 'master' into tarak/go1.20-rand-prep
tarakby 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
I think we should still leave this in. As of now, golang still follows the convention:
which I don't think is desired.
Suggestion
Maybe including a TODO would be better:
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.
The purpose of all my PRs is to remove the use of
math/rand
completely from production. There is no need to initializemath/rand
anymore since it's not used by the node software.