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@FreeBSD.org
          Reporter: p...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to