patch-2.1.125 linux/drivers/char/random.c
Next file: linux/drivers/char/saa5249.c
Previous file: linux/drivers/char/radio-sf16fmi.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Mon Oct 5 10:04:34 1998
- Orig file:
v2.1.124/linux/drivers/char/random.c
- Orig date:
Wed Aug 26 11:37:37 1998
diff -u --recursive --new-file v2.1.124/linux/drivers/char/random.c linux/drivers/char/random.c
@@ -1250,7 +1250,7 @@
}
#if HASH_BUFFER_SIZE & 1 /* There's a middle word to deal with */
x = tmp[HASH_BUFFER_SIZE/2];
- add_entropy_words(r, x, (__u32)buf);
+ add_entropy_words(r, x, (__u32)((unsigned long)buf));
x ^= (x >> 16); /* Fold it in half */
((__u16 *)tmp)[HASH_BUFFER_SIZE-1] = (__u16)x;
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov