From 753637a9dc63ee1f81f9d7685f5e12f76e1f3bc7 Mon Sep 17 00:00:00 2001 From: quix Date: Sat, 13 Sep 2008 15:50:05 -0400 Subject: [PATCH] allow --rand to take a string. Make full name --randomize. --- lib/rake.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rake.rb b/lib/rake.rb index 041d486fb..5aa9b71c5 100755 --- a/lib/rake.rb +++ b/lib/rake.rb @@ -2282,12 +2282,12 @@ def standard_rake_options ['--threads', '-j N', "Specifies the number of threads to run simultaneously.", lambda { |value| self.num_threads = value.to_i } ], - ['--rand[=SEED]', "Randomize task prerequisite orders", + ['--randomize[=SEED]', "Randomize task prerequisite orders", lambda { |value| MultiTask.class_eval { remove_method(:invoke_prerequisites) } options.randomize = true if value - srand(value.to_i) + srand(value.hash) end } ],