Created
February 18, 2020 10:09
-
-
Save lawrenceching/f875abb74205a1e7e81716199cf63c20 to your computer and use it in GitHub Desktop.
This file contains 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
// Refer to https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues | |
crypto.getRandomValues(new Uint8Array(5)).map(i => i%100) | |
// Uint8Array(5) [21, 54, 59, 41, 79] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment