Browse files

Using Kernel.rand instead of just rand due to injection issues

  • Loading branch information...
1 parent cb1d205 commit af76b40d3fa179ac97d401d33903e2509a35ceec @hexgnu hexgnu committed Nov 29, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rspec/core/extensions/ordered.rb
View
4 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 af76b40

Please sign in to comment.