Skip to content

Instantly share code, notes, and snippets.

@weisk
Created March 1, 2019 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weisk/d6cbe65a16eef2bd9f54199f84233e66 to your computer and use it in GitHub Desktop.
Save weisk/d6cbe65a16eef2bd9f54199f84233e66 to your computer and use it in GitHub Desktop.
randomest in js
// 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