We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For Random.nextInt(int max), max is exclusive (https://api.dart.dev/stable/2.14.4/dart-math/Random/nextInt.html). This means the _randomBytes() function (https://github.com/dart-bitcoin/bitcoin_flutter/blob/master/lib/src/ecpair.dart#L92) does not include 255. _SIZE_BYTE should be 256.
Random.nextInt(int max)
max
_randomBytes()
_SIZE_BYTE
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For
Random.nextInt(int max)
,max
is exclusive (https://api.dart.dev/stable/2.14.4/dart-math/Random/nextInt.html). This means the_randomBytes()
function (https://github.com/dart-bitcoin/bitcoin_flutter/blob/master/lib/src/ecpair.dart#L92) does not include 255._SIZE_BYTE
should be 256.The text was updated successfully, but these errors were encountered: