[Bug 209616] [ndis][patch] compat/ndis rand() doesn't respect the seed
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed May 18 17:41:08 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209616
Bug ID: 209616
Summary: [ndis][patch] compat/ndis rand() doesn't respect the
seed
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Keywords: patch
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: freebsd-bugs at FreeBSD.org
Reporter: pfg at FreeBSD.org
Keywords: patch
Created attachment 170453
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=170453&action=edit
Attempt to do proper seeding.
I don't really use ndis(4) but I noticed that while it has an srand() API to
seed and it calls srandom(), the rand() function overrides it completely.
We should keep the seed as a more permanent value that rand() respects.
Something like the attached patch.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list