annotate bin/pwgen @ 488:e3648f0482e5

Automatically exit less when the file is less than one screenful.
author edogawaconan <me@myconan.net>
date Fri, 08 Nov 2013 14:31:53 +0900
parents 8956a404dba6
children fea77cdcdb09
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
478
8956a404dba6 Added random password generator.
edogawaconan <me@myconan.net>
parents:
diff changeset
1 #!/usr/bin/env ruby
8956a404dba6 Added random password generator.
edogawaconan <me@myconan.net>
parents:
diff changeset
2
8956a404dba6 Added random password generator.
edogawaconan <me@myconan.net>
parents:
diff changeset
3 require 'securerandom'
8956a404dba6 Added random password generator.
edogawaconan <me@myconan.net>
parents:
diff changeset
4
8956a404dba6 Added random password generator.
edogawaconan <me@myconan.net>
parents:
diff changeset
5 5.times do |n|
8956a404dba6 Added random password generator.
edogawaconan <me@myconan.net>
parents:
diff changeset
6 puts "#{n}: #{SecureRandom.urlsafe_base64(12)}"
8956a404dba6 Added random password generator.
edogawaconan <me@myconan.net>
parents:
diff changeset
7 end