Commit a5d75bcd authored by Tobias Meuser's avatar Tobias Meuser
Browse files

Updated Random Generation

parent acb4395f
...@@ -389,8 +389,7 @@ public class Simulator implements RandomGeneratorComponent, GlobalComponent { ...@@ -389,8 +389,7 @@ public class Simulator implements RandomGeneratorComponent, GlobalComponent {
if (randomGenerators.containsKey(source)) { if (randomGenerators.containsKey(source)) {
return randomGenerators.get(source); return randomGenerators.get(source);
} else { } else {
long thisSeed = source.toString().hashCode() + 31 long thisSeed = source.hashCode() * seed;
* seed;
Monitor.log(Simulator.class, Level.INFO, Monitor.log(Simulator.class, Level.INFO,
"Created a new Random Source for %s with seed %d", source, "Created a new Random Source for %s with seed %d", source,
thisSeed); thisSeed);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment