]> arthur.barton.de Git - ngircd-alex.git/commit
ngircd: improve rng initialisation
authorFlorian Westphal <fw@strlen.de>
Sun, 27 Mar 2011 20:48:01 +0000 (22:48 +0200)
committerFlorian Westphal <fw@strlen.de>
Sun, 27 Mar 2011 22:29:58 +0000 (00:29 +0200)
commit5acb90fafc9dea012967751fb6a5c7847da1820a
tree8fac2422a08c0dd1ce2e4e72d20b2b43279494b7
parentd61fbfc6e3a0a85ced036d8c1fa161fab0d9ba3d
ngircd: improve rng initialisation

we do not need this for cryptographic purposes, but we can do better
than plain srandom(getpid()).

Also, keep in mind that rng state is inherited across fork(), so re-init
it in the child.
src/ngircd/ngircd.c
src/ngircd/proc.c