Commit [279213]  Maximize  Restore  History

rand() was replaced by lrand48() because:
1. rand() seems to have different implementations on different platforms.
2. rand man pages explain it might have not-so-random LSBs, so it is not
goot to use it with % to randomize numbers to to limit.
Since lrand48() does not have default seed, ( like rand() has ) the
pseudo random generator of lrand48 is seeded with arbitrary seed in bdd_init().

Haim Cohen Haim Cohen 2004-08-03

changed src/kernel.c
changed src/kernel.h
changed src/prime.c
changed src/reorder.c
src/kernel.c Diff Switch to side-by-side view
Loading...
src/kernel.h Diff Switch to side-by-side view
Loading...
src/prime.c Diff Switch to side-by-side view
Loading...
src/reorder.c Diff Switch to side-by-side view
Loading...

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks