This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Random Number Seed
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello!
Robert G. Brown wrote:
|> My bad, sorry. I was assuming that the system itself wasn't broken
|> here, so that /dev/random might be absent but wouldn't be broken.
[clip]
I do not blame you for the code! I would have probably written the same
code myself.
I was thinking along the same lines as you - that our system is broken.
It turned out that the problem is the queuing system "condor" that we
use. Condor wraps the system calls of the executable with its own
versions, and these lead to the strange behaviour described: the fopen()
call succeeds, the fread() returns 0 and does not set the seed, and
feof() is set.
Olaf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCGur4tQ3riQ3oo/oRAmJSAJwNt2sWgY8YpQIZS+pICMpTWeqaGgCgoTCR
sNVXLTsHH88RCWoRbY3Q1Gc=
=Hweq
-----END PGP SIGNATURE-----