Skip to content

Instantly share code, notes, and snippets.

@shapkarin
Created April 18, 2019 14:44
Show Gist options
  • Save shapkarin/4b19574b181c31305a8c9799f7bea04a to your computer and use it in GitHub Desktop.
Save shapkarin/4b19574b181c31305a8c9799f7bea04a to your computer and use it in GitHub Desktop.
generate random hex
Random.new.bytes(3).unpack("H*")[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment