Skip to content

Instantly share code, notes, and snippets.

@noahhendrix
Last active December 26, 2015 08: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 noahhendrix/7122362 to your computer and use it in GitHub Desktop.
Save noahhendrix/7122362 to your computer and use it in GitHub Desktop.
Alternative to RubyTapas #144
require 'securerandom'
codes = Array.new(200) { SecureRandom.hex(8) } # => ["de988ab34e9ac058", "423198812a0152ad", … ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment