Created
March 1, 2019 03:21
-
-
Save weisk/d6cbe65a16eef2bd9f54199f84233e66 to your computer and use it in GitHub Desktop.
randomest in js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// window | |
let array = new Uint32Array(10); | |
crypto.getRandomValues(array); | |
// node | |
crypto.randomBytes(10).toString('utf8'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment