Module Name: src Committed By: enami Date: Sat Nov 26 14:04:20 UTC 2011
Modified Files: src/sys/lib/libkern: arc4random.c Log Message: Use exact 32bit integral type to declare variable to store 32bit random value. This is necessary since it is overwritten by four bytes. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/sys/lib/libkern/arc4random.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/lib/libkern/arc4random.c diff -u src/sys/lib/libkern/arc4random.c:1.24 src/sys/lib/libkern/arc4random.c:1.25 --- src/sys/lib/libkern/arc4random.c:1.24 Sat Nov 26 13:53:37 2011 +++ src/sys/lib/libkern/arc4random.c Sat Nov 26 14:04:20 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: arc4random.c,v 1.24 2011/11/26 13:53:37 enami Exp $ */ +/* $NetBSD: arc4random.c,v 1.25 2011/11/26 14:04:20 enami Exp $ */ /*- * Copyright (c) 2002, 2011 The NetBSD Foundation, Inc. @@ -282,7 +282,7 @@ arc4_randbyte(void) u_int32_t arc4random(void) { - int ret; + u_int32_t ret; u_int8_t *retc; retc = (u_int8_t *)&ret;