Skip to content

Instantly share code, notes, and snippets.

@maxp
Created November 22, 2018 04:29
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 maxp/bfa363905cdd5a23dea7d537239643d1 to your computer and use it in GitHub Desktop.
Save maxp/bfa363905cdd5a23dea7d537239643d1 to your computer and use it in GitHub Desktop.
oneliner: generate random hex using nodejs
node -e "console.log(require('crypto').randomBytes(20).toString('hex'))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment