From 3c993001de3a167a150d45bafb4d59513c95ac1e Mon Sep 17 00:00:00 2001 From: John Bintz Date: Tue, 29 Nov 2011 14:48:55 -0500 Subject: [PATCH] use kernel.rand/srand --- lib/jasmine/headless/files_list.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jasmine/headless/files_list.rb b/lib/jasmine/headless/files_list.rb index 7456559..5ffdd5f 100644 --- a/lib/jasmine/headless/files_list.rb +++ b/lib/jasmine/headless/files_list.rb @@ -62,7 +62,7 @@ module Jasmine::Headless def initialize(options = {}) @options = options - srand(@options[:seed]) if @options[:seed] + Kernel.srand(@options[:seed]) if @options[:seed] @required_files = UniqueAssetList.new @potential_files_to_filter = [] @@ -186,7 +186,7 @@ module Jasmine::Headless dirs.product(patterns).each do |search| files = Dir[File.join(*search)].find_all { |file| file[extension_filter] } - files.sort! { |a, b| rand(3) - 1 } if type == 'spec_files' + files.sort! { |a, b| Kernel.rand(3) - 1 } if type == 'spec_files' files.each do |path| add_path(path, type) if File.file?(path)