feat:node-modules
This commit is contained in:
11
node_modules/seedrandom/lib/crypto.js
generated
vendored
Normal file
11
node_modules/seedrandom/lib/crypto.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// mimic a subset of node's crypto API for the browser
|
||||
|
||||
function randomBytes(width) {
|
||||
var out = new Uint8Array(width);
|
||||
(global.crypto || global.msCrypto).getRandomValues(out);
|
||||
return out;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
randomBytes: randomBytes
|
||||
}
|
||||
Reference in New Issue
Block a user