[Bug 209616] [ndis][patch] compat/ndis rand() doesn't respect the seed
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat May 21 14:48:10 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209616
Pedro F. Giffuni <pfg at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #170525|0 |1
is obsolete| |
--- Comment #4 from Pedro F. Giffuni <pfg at FreeBSD.org> ---
Created attachment 170529
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=170529&action=edit
Use internal seeding procedure
(In reply to Andrey Chernov from comment #3)
It is tempting to just use arc4random()) and ignore the seed. The main function
of ndis is to mimic MS-Windows though so for bare compatibility it seems better
to just wrap things around random() and srandom() respecting the internal
seeding procedures.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list