Update randombytes.js

This commit is contained in:
Emil Bay 2018-04-30 21:46:43 +02:00
parent 8b5599ec84
commit c53ca9363a

View File

@ -11,7 +11,7 @@ var randombytes = (function () {
}
function nodeBytes (out, n) {
out.set(crypto.randomBytes(n))
new Uint8Array(out.buffer, 0, n).set(crypto.randomBytes(n))
}
function noImpl () {