Date: Wed, 18 May 2016 17:41:08 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 209616] [ndis][patch] compat/ndis rand() doesn't respect the seed Message-ID: <bug-209616-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209616 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@FreeBSD.org Reporter: pfg@FreeBSD.org Keywords: patch Created attachment 170453 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D170453&action= =3Dedit 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-209616-8>