Permalink
Browse files

Merge pull request #514 from hexgnu/master

Use `Kernel.rand` instead of `rand` for randomization.
  • Loading branch information...
2 parents cb1d205 + af76b40 commit bb2b02a28c4a150ad7b1394e09dbd745d88fbdd5 @justinko justinko committed Nov 29, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rspec/core/extensions/ordered.rb
@@ -6,8 +6,8 @@ module Extensions
module Ordered
def ordered
if RSpec.configuration.randomize?
- srand RSpec.configuration.seed
- sort_by { rand size }
+ Kernel.srand RSpec.configuration.seed
+ sort_by { Kernel.rand size }
else
self
end

0 comments on commit bb2b02a

Please sign in to comment.