]> err.no Git - linux-2.6/commit
random: fix seeding with zero entropy
authorMatt Mackall <mpm@selenic.com>
Wed, 30 May 2007 02:58:10 +0000 (21:58 -0500)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 30 May 2007 03:09:34 +0000 (20:09 -0700)
commit7f397dcdb78d699a20d96bfcfb595a2411a5bbd2
tree7ecb0b2f782a4e18eef80ff638f0469cd4ad0233
parent602b6aeefe8932dd8bb15014e8fe6bb25d736361
random: fix seeding with zero entropy

Add data from zero-entropy random_writes directly to output pools to
avoid accounting difficulties on machines without entropy sources.

Tested on lguest with all entropy sources disabled.

Signed-off-by: Matt Mackall <mpm@selenic.com>
Acked-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/random.c