Skip to content

Instantly share code, notes, and snippets.

@takai
Created June 30, 2012 01:11
Show Gist options
  • Save takai/3021657 to your computer and use it in GitHub Desktop.
Save takai/3021657 to your computer and use it in GitHub Desktop.
Generate random strings for password
16.times.map { rand(1 + ?~.ord - _ = ?!.ord) + _ }.pack('c*')
@takai
Copy link
Author

takai commented Jun 30, 2012

looks stubborn for me 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment