randombytes: Error in Chrome
I received this error in an up-to-date version of Chrome (Version 41.0.2272.104):
Uncaught Error: secure random number generation not supported by this browser use chrome, FireFox or Internet Explorer 11
after running
var randombytes = require('randombytes');
console.log(randombytes(10))
However, crypto.randomBytes worked fine.
About this issue
- Original URL
- State: closed
- Created 12 years ago
- Comments: 18 (10 by maintainers)
works for me in chrome http://requirebin.com/?gist=41d322190bbf845b8a25
what exactly are you doing because the example you gave doesn’t look like it’s in javascript