]> err.no Git - varnish/commit
We don't need cryptographic-strength randomness here. Try /dev/urandom
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 21 Feb 2008 21:14:57 +0000 (21:14 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 21 Feb 2008 21:14:57 +0000 (21:14 +0000)
commitcaad8eaa6338f7120424719cdcd014d43e3bc21f
tree01bc6b9009022773b90ec0fc10e1af5bd8e42ec2
parentc45b880105c5abda7a68962183401bd4ba115e50
We don't need cryptographic-strength randomness here.  Try /dev/urandom
first, then /dev/random, then fall back to pid and time.  Using an
uninitialized stack variable as seed is just silly, and Coverity rightly
complains about it (CID#19)

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2528 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/lib/libvarnishcompat/srandomdev.c