Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern when querying randomness sources from position 'sta...
details: https://anonhg.NetBSD.org/src/rev/6099083fdf6b
branches: trunk
changeset: 340255:6099083fdf6b
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sat Aug 29 10:00:19 2015 +0000
description:
when querying randomness sources from position 'start' then skip 'start'
entries and not one less.
diffstat:
sys/kern/kern_rndq.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3f9b2efb6ce2 -r 6099083fdf6b sys/kern/kern_rndq.c
--- a/sys/kern/kern_rndq.c Sat Aug 29 07:33:18 2015 +0000
+++ b/sys/kern/kern_rndq.c Sat Aug 29 10:00:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_rndq.c,v 1.72 2015/08/05 16:51:09 riastradh Exp $ */
+/* $NetBSD: kern_rndq.c,v 1.73 2015/08/29 10:00:19 mlelstv Exp $ */
/*-
* Copyright (c) 1997-2013 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.72 2015/08/05 16:51:09 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.73 2015/08/29 10:00:19 mlelstv Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -1493,7 +1493,7 @@
*/
kr = LIST_FIRST(&rnd_global.sources);
start = rset->start;
- while (kr != NULL && start > 1) {
+ while (kr != NULL && start > 0) {
kr = LIST_NEXT(kr, list);
start--;
}
Home |
Main Index |
Thread Index |
Old Index