From 4ae98154716cfe450bf5a636b81a149c8b6fa668 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Mon, 28 Nov 2011 11:52:33 -0500 Subject: [PATCH] better randomization --- lib/jasmine/headless/options.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/jasmine/headless/options.rb b/lib/jasmine/headless/options.rb index 5252725..d62da56 100644 --- a/lib/jasmine/headless/options.rb +++ b/lib/jasmine/headless/options.rb @@ -17,7 +17,6 @@ module Jasmine :do_list => false, :full_run => true, :enable_cache => true, - :seed => rand(10000), :files => [] } @@ -33,6 +32,8 @@ module Jasmine def initialize(opts = {}) @options = DEFAULT_OPTIONS.dup + srand + @options[:seed] = rand(10000) read_defaults_files opts.each { |k, v| @options[k] = v if v } end