mickelson / attract

A graphical front-end for command line emulators that hides the underlying operating system and is intended to be controlled with a joystick or gamepad.
http://attractmode.org
GNU General Public License v3.0
397 stars 115 forks source link

issue with srand #533

Closed keilmillerjr closed 5 years ago

keilmillerjr commented 5 years ago

albertodemichelis/squirrel - srand #172

Having an issue with srand.

srand(0) generates a seed, but srand with anything else as a parameter creates a different but non unique seed. I can only obtain two different seeds. Any ideas? Here’s a link to my project rantro-intro.

keilmillerjr commented 5 years ago

Apparently seems need to be vastly different to provide proper results. Time in seconds is not enough. I looked at some python libraries for reference. Thank you.