Bug 201489

Summary: random_harvest(9) man page has an incorrect function definition
Product: Documentation Reporter: kenji.rikitake
Component: Manual PagesAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Overcome By Events    
Severity: Affects Many People CC: debdrup, doc
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
unified diff for /usr/share/man/man9/random_harvest.9 none

Description kenji.rikitake 2015-07-12 06:19:27 UTC
Created attachment 158639 [details]
unified diff for /usr/share/man/man9/random_harvest.9

I am using FreeBSD 10.2-PRERELEASE amd64 r285345.

I've found a manual bug at /usr/share/man/man9/random_harvest.9.

The function description

void random_harvest(void *entropy, u_int size, u_int bits, u_int frac,
     enum esource source);

is different from the current definition in <sys/random.h> as

void random_harvest(void *, u_int, u_int, enum esource);

and in /usr/src/sys/dev/random/harvest.c as:

void
random_harvest(void *entropy, u_int count, u_int bits, enum esource origin)

The attached patch is to fix the random_harvest.9 file.
Comment 1 Daniel Ebdrup Jensen freebsd_committer freebsd_triage 2021-01-16 20:42:29 UTC
Thank you for your attention to detail, but unfortunately the man-page was substantially rewritten in r284959, and 10.x was EOL on October 31, 2018 according to https://www.freebsd.org/security/unsupported.html