Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
a5d75bcd
Commit
a5d75bcd
authored
May 09, 2019
by
Tobias Meuser
Browse files
Updated Random Generation
parent
acb4395f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/simengine/Simulator.java
View file @
a5d75bcd
...
...
@@ -389,8 +389,7 @@ public class Simulator implements RandomGeneratorComponent, GlobalComponent {
if
(
randomGenerators
.
containsKey
(
source
))
{
return
randomGenerators
.
get
(
source
);
}
else
{
long
thisSeed
=
source
.
toString
().
hashCode
()
+
31
*
seed
;
long
thisSeed
=
source
.
hashCode
()
*
seed
;
Monitor
.
log
(
Simulator
.
class
,
Level
.
INFO
,
"Created a new Random Source for %s with seed %d"
,
source
,
thisSeed
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment