-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update ofRandomSeed in examples and tests #7622
Conversation
@@ -17,7 +17,8 @@ void swarm::init(int nParticles, float positionDispersion, float velocityDispers | |||
particles.clear(); | |||
} | |||
|
|||
ofSeedRandom(); | |||
// ofSeedRandom(); superfluous -- the current random engine state | |||
// is indistinguishable from another arbirarilty-seeded state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree. Feel free to remove. No need for commenting out :)
@@ -56,7 +56,8 @@ void Swarm::init(int _nParticles, float positionDispersion, float velocityDisper | |||
// INITIALISE VALUES | |||
/////////////////////////////////////////// | |||
// | |||
ofSeedRandom(); | |||
// ofSeedRandom(); superfluous -- the current random engine state | |||
// is indistinguishable from another arbirarilty-seeded state | |||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree. Feel free to remove. No need for commenting out :)
tests/addons/networkTcp/src/main.cpp
Outdated
@@ -257,7 +257,7 @@ class ofApp: public ofxUnitTestsApp{ | |||
} | |||
|
|||
void run(){ | |||
ofSeedRandom(ofGetSeconds()); | |||
ofSetRandomSeed(ofGetSeconds()); // why? random engine is initialized to a non-deterministic state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree. Feel free to remove.
done! |
Thanks!! :) |
No description provided.