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
The following code:
var size = 0; crypto.randomBytes(size, function (e, buffer) { if (e) { return callback(e); } callback(e, buffer.toString('hex')); });
will return an empty (length of 0) SlowBuffer.
SlowBuffer
This is a bug in Node.js's core module crypto. The similar crypto.pseudoRandomBytes() method would return the same value.
crypto
crypto.pseudoRandomBytes()
The text was updated successfully, but these errors were encountered:
The following issue:
and it's corresponding commit:
might fix this.
It still needs to be tested though.
Sorry, something went wrong.
Created two issues #1 and #2. In the meantime this fix will handle th…
1d122d0
…e bugs so that the code runs in the expected way.
Added an additional test for the case mentioned in issue #1.
d6aadbc
No branches or pull requests
The following code:
will return an empty (length of 0)
SlowBuffer
.This is a bug in Node.js's core module
crypto
.The similar
crypto.pseudoRandomBytes()
method would return the same value.The text was updated successfully, but these errors were encountered: