From 58d2d5e99fee6bf3a067f4b6c3f731e66b5c51e0 Mon Sep 17 00:00:00 2001 From: Kshitij Bansal Date: Sun, 27 Apr 2014 18:41:03 -0400 Subject: [PATCH] rm undocument/non-working* "feature" *test of unsigned for negative --- src/main/portfolio_util.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/main/portfolio_util.cpp b/src/main/portfolio_util.cpp index e4fcf6024..cfaa76aa8 100644 --- a/src/main/portfolio_util.cpp +++ b/src/main/portfolio_util.cpp @@ -30,12 +30,6 @@ vector parseThreadSpecificOptions(Options opts) unsigned numThreads = opts[options::threads]; - /** - * Use satRandomSeed for generating random numbers, in particular - * satRandomSeed-s - */ - srand(-opts[options::satRandomSeed]); - for(unsigned i = 0; i < numThreads; ++i) { threadOptions.push_back(opts); Options& tOpts = threadOptions.back(); @@ -43,11 +37,6 @@ vector parseThreadSpecificOptions(Options opts) // Set thread identifier tOpts.set(options::thread_id, i); - // If the random-seed is negative, pick a random seed randomly - if(opts[options::satRandomSeed] < 0) { - tOpts.set(options::satRandomSeed, unsigned(rand())); - } - if(i < opts[options::threadArgv].size() && !opts[options::threadArgv][i].empty()) { -- 2.30.2