You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
// 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
|
|
}
|