Bug#483470: rdate: RNG is broken

2009-02-14 Thread Jakub Wilk
Package: rdate Followup-For: Bug #483470 Fortunately, libbsd contains a decent implementation of arc4random, so the fix is straight-forward. -- System Information: Debian Release: 5.0 APT prefers unstable APT policy: (900, 'unstable'), (500, 'experimental') Architecture: i386 (i686) Kernel:

Bug#483470: rdate: RNG is broken

2009-02-14 Thread Jakub Wilk
Package: rdate Version: 1:1.1.3-2 Followup-For: Bug #483470 I agree, the culprit is the following fragment: len = sizeof(rnd); sysctl(mib, 2, rnd, &len, NULL, 0); arc4_stir_pid = getpid(); arc4_addrandom(as, rnd, sizeof(rnd)); The funny thing is that you can saf