NetBSD Problem Report #11164
Received: (qmail 27217 invoked from network); 8 Oct 2000 10:13:08 -0000
Message-Id: <200010081012.MAA28197@vader.runit.sintef.no>
Date: Sun, 8 Oct 2000 12:12:37 +0200 (MEST)
From: he@runit.no (Havard Eidnes)
Reply-To: he@runit.no
To: gnats-bugs@gnats.netbsd.org
Subject: doc/code mismatch for rnd_add_uint32
X-Send-Pr-Version: 3.95
>Number: 11164
>Category: kern
>Synopsis: doc/code mismatch for rnd_add_uint32
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 08 10:14:00 +0000 2000
>Closed-Date: Sun Jun 24 08:31:06 +0000 2018
>Last-Modified: Sun Jun 24 08:31:06 +0000 2018
>Originator: Havard Eidnes <he@uninett.no>
>Release: 1.5_ALPHA2
>Organization:
RUNIT AS
>Environment:
System: NetBSD vader.runit.sintef.no 1.4 NetBSD 1.4 (VADER) #2: Mon Jun 14 13:08:51 MEST 1999 he@vader.runit.sintef.no:/usr/src/sys/arch/i386/compile/VADER i386
>Description:
The documentation for rnd_add_uint32 says:
rnd_add_uint32(rndsource_element_t *rnd_source, u_int32_t datum)
...
If it is desired to mix in the datum and to add in a timestamp,
but not to actually estimate entropy from a source of random-
ness, passing NULL for rnd_source is permitted, and the device
does not need to be attached.
This does not appear to match the code, which does as the
first step in rnd_add_uint32:
/*
* If we are not collecting any data at all, just return.
*/
if (rs == NULL)
return;
>How-To-Repeat:
See above.
>Fix:
None supplied. It is not entirely clear whether this is a
software or documentation bug, although I lean towards the
former.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: maxv@NetBSD.org
State-Changed-When: Sun, 24 Jun 2018 08:31:06 +0000
State-Changed-Why:
Fixed since.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.