Skip to content

Instantly share code, notes, and snippets.

@jorrizza
Created July 16, 2014 16:24
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 jorrizza/1610632a07939910db23 to your computer and use it in GitHub Desktop.
Save jorrizza/1610632a07939910db23 to your computer and use it in GitHub Desktop.
rfc4193
Array.new(2, ("fd" + SecureRandom.hex(5)).gsub(/([a-f0-9]{4})/, '\1:')).join(':/64 - ') + 'ffff::/64'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment