Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libkern Use exact 32bit integral type to declare var...
details: https://anonhg.NetBSD.org/src/rev/aa2bdfa7cd13
branches: trunk
changeset: 771615:aa2bdfa7cd13
user: enami <enami%NetBSD.org@localhost>
date: Sat Nov 26 14:04:20 2011 +0000
description:
Use exact 32bit integral type to declare variable to store
32bit random value. This is necessary since it is overwritten
by four bytes.
diffstat:
sys/lib/libkern/arc4random.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r fbaeb9403f36 -r aa2bdfa7cd13 sys/lib/libkern/arc4random.c
--- a/sys/lib/libkern/arc4random.c Sat Nov 26 13:53:37 2011 +0000
+++ b/sys/lib/libkern/arc4random.c Sat Nov 26 14:04:20 2011 +0000
@@ -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 @@
u_int32_t
arc4random(void)
{
- int ret;
+ u_int32_t ret;
u_int8_t *retc;
retc = (u_int8_t *)&ret;
Home |
Main Index |
Thread Index |
Old Index