← 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

Bruno Chareyre posted a new comment:
> if it's ignored makeCloud should generate different set of particles
with same seed?

Yes but no. :)
If you check line 52 [1] you'll see that seed was not fully ignored, it was just always zero regardless of user input.
Defaulting to -1 really makes it random (i.e. hardware based) I think - can't find immediate confirmation in boost doc right now.
Bruno

[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.