random: fix error in entropy extraction
authorMatt Mackall <mpm@selenic.com>
Wed, 30 May 2007 02:54:27 +0000 (21:54 -0500)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 30 May 2007 03:09:34 +0000 (20:09 -0700)
commit602b6aeefe8932dd8bb15014e8fe6bb25d736361
tree7f6eb6fe0a492b91679785705389b043b7406986
parentf717221b4e51284c153ab4265c4607e86037047b
random: fix error in entropy extraction

Fix cast error in entropy extraction.
Add comments explaining the magic 16.
Remove extra confusing loop variable.

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