Skip to content
Myr

random.browser.js

This file

Path

random.browser.js

5 lines · 136 bytes · JavaScript

Last changed by

Reduce index.js sizeAndrey Sitnikbefore adoptionc28c36f

History of this file

Take it

Reduce index.js sizeAndrey Sitnikbefore adoptionc28c36f

lines 1–5why, one step back
1var crypto = self.crypto || self.msCrypto
23module.exports = function (bytes) {4 return crypto.getRandomValues(new Uint8Array(bytes))5}