-
Notifications
You must be signed in to change notification settings - Fork 179
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 part 3] Remove math/rand from integration and insecure modules #4106
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4106 +/- ##
==========================================
- Coverage 53.51% 50.87% -2.65%
==========================================
Files 833 600 -233
Lines 77896 55921 -21975
==========================================
- Hits 41687 28450 -13237
+ Misses 32874 25104 -7770
+ Partials 3335 2367 -968
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 235 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
integration/dkg/dkg_emulator_test.go
Outdated
@@ -168,8 +168,6 @@ func (s *DKGSuite) runTest(goodNodes int, emulatorProblems bool) { | |||
|
|||
// shuffle the signatures and indices before constructing the group | |||
// signature (since it only uses the first half signatures) | |||
seed := time.Now().UnixNano() |
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.
did you also want to update the import, or just remove the seed?
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.
time
and rand
are still used that's why the imports were not changed. Did I get your comment right?
@@ -298,8 +298,6 @@ func TestWithWhiteboard(t *testing.T) { | |||
|
|||
// shuffle the signatures and indices before constructing the group | |||
// signature (since it only uses the first half signatures) | |||
seed := time.Now().UnixNano() |
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.
same here
Closing as changes were incorporated in another PR. |
( result of splitting #4052 into several PRs)
math/rand
functionsSeed
andRead
.