Skip to content
This repository has been archived by the owner on Nov 14, 2017. It is now read-only.

Commit

Permalink
fix generate_set in tiny.rb for ruby 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebragger committed May 21, 2011
1 parent 58a31e3 commit 99e13d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tiny.rb
Expand Up @@ -53,9 +53,9 @@ def tiny_from_timestamp

def generate_set
base_set = ("a".."z").to_a + ("A".."Z").to_a + (0..9).to_a
base_set = base_set.sort_by{ rand }.to_s
base_set = base_set.sort_by{ rand }
puts "generate_set()"
puts base_set
puts base_set.join('')
puts "TINY_EPOCH = #{Time.now.to_i}"
end
end
Expand Down

0 comments on commit 99e13d5

Please sign in to comment.