Update randombytes.js
This commit is contained in:
parent
8b5599ec84
commit
c53ca9363a
@ -11,7 +11,7 @@ var randombytes = (function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function nodeBytes (out, n) {
|
function nodeBytes (out, n) {
|
||||||
out.set(crypto.randomBytes(n))
|
new Uint8Array(out.buffer, 0, n).set(crypto.randomBytes(n))
|
||||||
}
|
}
|
||||||
|
|
||||||
function noImpl () {
|
function noImpl () {
|
||||||
|
Loading…
Reference in New Issue
Block a user