mardi 21 juin 2016

Generate reproducible large number sequences - with pseudo random generator?

I'm using and reusing large number sequences which I (re)generate with rand(). To get different sequences I use srand() with a well-known seed.

How portable is this approach? Will this working over different platforms with different versions of the libc and compilers and CPUs?

Are there safer alternatives to this approach?

Just to clarify: this is not for cryptographic usage.




Aucun commentaire:

Enregistrer un commentaire