6 lines
136 B
JavaScript
6 lines
136 B
JavaScript
|
var crypto = self.crypto || self.msCrypto
|
||
|
|
||
|
module.exports = function (bytes) {
|
||
|
return crypto.getRandomValues(new Uint8Array(bytes))
|
||
|
}
|