Skip to content

Conversation

@dcousens
Copy link
Contributor

@dcousens dcousens commented Sep 8, 2015

Adds a [failing] test for checking the RNG output for ECPair.makeRandom, see #447 (comment)

The test is failing only because, prior to this PR, makeRandom was accepting of a RNG value of 0.
The ECPair constructor threw in this case, (Private key must be >0), so it is not an issue, but may be unexpected.

Given the astronomically small possibility of this case, it is almost certainly an error, so I'm not even sure if looping is the right action.

However, to be consistent, I've fixed it for now.
Thoughts @weilu ?

@dcousens dcousens added the bug label Sep 8, 2015
@dcousens dcousens added this to the 2.0.0 milestone Sep 8, 2015
@dcousens dcousens changed the title Modulo Modulo tests Sep 8, 2015
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this test, as sinonjs/sinon#613 doesn't look like it'll be fixed any time soon.
We already check that the parameters themselves are being used, it would just have been an added precaution to verify the call behaviour.

dcousens added a commit that referenced this pull request Sep 9, 2015
@dcousens dcousens merged commit 0f8bce5 into master Sep 9, 2015
@dcousens dcousens deleted the modulo branch September 9, 2015 02:18
dcousens added a commit that referenced this pull request Oct 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants