Bug#695285: /etc/cron.daily/apt backup RNG is very wasteful

2013-01-10 Thread Michael Vogt
On Thu, Jan 10, 2013 at 02:44:42AM -0500, sacrificial-spam-addr...@horizon.com wrote: Thanks, I fixed this now in my bzr tree and it will be part of the next upload. Er, assuming that's revision 2269: http://anonscm.debian.org/loggerhead/apt/debian-sid/revision/2269/debian/apt.cron.daily

Bug#695285: /etc/cron.daily/apt backup RNG is very wasteful

2013-01-10 Thread sacrificial-spam-address
Thanks for checking this. I like this, its more compact than the current code. However the reason why I did not use this, was that the following fragment: $ while true; do res=$(od -N2 -d /dev/urandom | cut -s -d' ' -f2); echo $res; if [ -z $res ]; then break; fi ; done 61581 42056

Bug#695285: /etc/cron.daily/apt backup RNG is very wasteful

2013-01-09 Thread sacrificial-spam-address
Thanks, I fixed this now in my bzr tree and it will be part of the next upload. Er, assuming that's revision 2269: http://anonscm.debian.org/loggerhead/apt/debian-sid/revision/2269/debian/apt.cron.daily You don't need the final cut -c1-5. It is true that cksum returns an unsigned 32-bit

Bug#695285: /etc/cron.daily/apt backup RNG is very wasteful

2013-01-08 Thread Michael Vogt
On Thu, Dec 06, 2012 at 11:45:40AM -0500, sacrificial-spam-addr...@horizon.com wrote: Package: apt Version: 0.9.7.6 Severity: minor Thanks for your bugreport. [..] This backup for a missing $RANDOM reads 512 bytes out of /dev/urandom, only to reduce it (incorrectly) to a 5-digit number

Bug#695285: /etc/cron.daily/apt backup RNG is very wasteful

2012-12-06 Thread sacrificial-spam-address
Package: apt Version: 0.9.7.6 Severity: minor /etc/cron.daily/apt does: random_sleep() { RandomSleep=1800 eval $(apt-config shell RandomSleep APT::Periodic::RandomSleep) if [ $RandomSleep -eq 0 ]; then return fi if [ -z $RANDOM ] ; then # A fix for shells that