I'm using and reusing large number sequences which I (re)generate with rand()
. To get different sequences I use srand()
with different but known seeds.
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.