rm undocument/non-working* "feature"
authorKshitij Bansal <kshitij@cs.nyu.edu>
Sun, 27 Apr 2014 22:41:03 +0000 (18:41 -0400)
committerKshitij Bansal <kshitij@cs.nyu.edu>
Sun, 27 Apr 2014 22:45:42 +0000 (18:45 -0400)
*test of unsigned for negative

src/main/portfolio_util.cpp

index e4fcf60248f552f8f0491b8302e351c1b80cc727..cfaa76aa8f27d6e3db0c0a1fc373980706ba8c20 100644 (file)
@@ -30,12 +30,6 @@ vector<Options> 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<Options> 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()) {