Permalink
Browse files

fix generate_set in tiny.rb for ruby 1.9

  • Loading branch information...
1 parent 58a31e3 commit 99e13d5320f630cd2c5287d1b75040a0cdc49e1a @kylebragger committed May 21, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 tiny.rb
View
@@ -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

0 comments on commit 99e13d5

Please sign in to comment.