Author: pfg
Date: Sun May 22 14:13:20 2016
New Revision: 300422
URL: https://svnweb.freebsd.org/changeset/base/300422

Log:
  ndis(4):  Undo unneeded workarounds in ndis' rand().
  
  - Revert the change for seed(0) in r300384. I misunderstood the standard
  and while our random() implementation in libkern may be improved, it
  handles the seed(0) case fine.
  
  Pointed out by:       bde, ache

Modified:
  head/sys/compat/ndis/subr_ntoskrnl.c

Modified: head/sys/compat/ndis/subr_ntoskrnl.c
==============================================================================
--- head/sys/compat/ndis/subr_ntoskrnl.c        Sun May 22 13:58:32 2016        
(r300421)
+++ head/sys/compat/ndis/subr_ntoskrnl.c        Sun May 22 14:13:20 2016        
(r300422)
@@ -3196,8 +3196,6 @@ static void
 srand(unsigned int seed)
 {
 
-       if (seed == 0)
-               seed = 1;
        srandom(seed);
 }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to