Use /dev/urandom, as it doesn't block, which /dev/random might do. Do not
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Thu, 19 Aug 1999 08:32:03 +0000 (08:32 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Thu, 19 Aug 1999 08:32:03 +0000 (08:32 +0000)
commite435032d6e17b0f4ad34b88d1f82804dc9af13e0
tree3e783ba50cdcedf533d758cbf01ea7cef119f541
parent80c44ef391085fcb5b647ed7e5f4d0215f8fbec6
Use /dev/urandom, as it doesn't block, which /dev/random might do. Do not

1999-07-23  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* grand.c (g_rand_new): Use /dev/urandom, as it doesn't block,
which /dev/random might do. Do not XOR the time, when getting the
seed form /dev/urandom, as this is good itself. Prevent the
initial seed from being zero, which causes the PRNG to produce
only zeros. Hints from Colin Plumb <colin@pgp.com>.
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/grand.c
grand.c