Summary: | arc4random man page example could be better | ||
---|---|---|---|
Product: | Documentation | Reporter: | Andras Farkas <deepbluemistake> |
Component: | Manual Pages | Assignee: | Conrad Meyer <cem> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | doc |
Priority: | --- | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Andras Farkas
2019-03-21 02:22:17 UTC
Perhaps, although there was no guarantee old rand() was uniformly distributed either? Better to provide examples of _uniform() API use, though. A commit references this bug: Author: cem Date: Thu Mar 21 14:45:09 UTC 2019 New revision: 345380 URL: https://svnweb.freebsd.org/changeset/base/345380 Log: arc4random: Adjust example code to use uniform() API PR: 236678 Reported by: Andras Farkas <deepbluemistake AT gmail.com> Changes: head/lib/libc/gen/arc4random.3 |