Guest User

Untitled

a guest
May 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. NUMBER_OF_USERNAME_PASSWORDS = 10_000
  2. LENGTH = 8
  3.  
  4. passwords = Hash[
  5. *Array.new(NUMBER_OF_USERNAME_PASSWORDS) do
  6. proc { |n| Array.new(n) { (97..122).to_a[ rand(26) ].chr }.join }[LENGTH]
  7. end
  8. ]
Add Comment
Please, Sign In to add comment