Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Switched to Array.shuffle for Ruby 1.8

  • Loading branch information...
commit 1067a6263e094832cb108177559c2f9155817250 1 parent 6d54699
@dhotson dhotson authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  asc.rb
View
2  asc.rb
@@ -269,7 +269,7 @@ def initialize x, y, width, background
@background = background
@period = rand(4) + 6
@window_width = @period - rand(2) - 1
- @color = (235..238).to_a.sample
+ @color = (235..238).to_a.shuffle.first # Ruby 1.8
@top_color = @color + 4
@left_color = @color + 2
end

0 comments on commit 1067a62

Please sign in to comment.
Something went wrong with that request. Please try again.