← Back to team overview

yade-users team mailing list archive

Re: [Question #690815]: CPU random generator warning

 

Question #690815 on Yade changed:
https://answers.launchpad.net/yade/+question/690815

whr posted a new comment:
Just add a comment on the bug Janek mentioned.

I tested it and yade-2020.01a indeed has this bug. makeCloud generate
different set of particle with same seed. The source code is the same as
those before fixed in [1].

>If you check line 52 [1] you'll see that seed was not fully ignored, it
was just always zero regardless of user input.

The bug is caused by line 128 in [1] where seed is ignored. Defaulting
to -1 makes it random in case no seed is defined in the fixed version,
am I right?

[1]https://gitlab.com/yade-dev/trunk/-/merge_requests/428/diffs

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.