Skip to content

Instantly share code, notes, and snippets.

@hidakatsuya
Last active January 3, 2024 05:23
Show Gist options
  • Save hidakatsuya/d149a50bb81e492223ca3ea129690f2f to your computer and use it in GitHub Desktop.
Save hidakatsuya/d149a50bb81e492223ca3ea129690f2f to your computer and use it in GitHub Desktop.
Generate alphanumeric random chars
ruby -rsecurerandom -e "puts SecureRandom.alphanumeric(16)" | pbcopy
ruby -rsecurerandom -e "puts SecureRandom.random_number(10000)" | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment