Skip to content

Commit 55c42bd

Browse files
committed
Merge pull request #54 from awlayton/patch-1
Fix rng.js for modern browsers
2 parents 3b8d46c + 3267955 commit 55c42bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rng.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* See https://developer.mozilla.org/en-US/docs/Web/API/window.crypto.getRandomValues
1313
*/
1414

15-
_crypto.getRandomValues
15+
_crypto.getRandomValues(bytes);
1616
return bytes;
1717
}
1818
else if (_crypto.randomBytes) {

0 commit comments

Comments
 (0)