svn commit: r300422 - head/sys/compat/ndis

Pedro F. Giffuni pfg at FreeBSD.org
Sun May 22 14:13:22 UTC 2016


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);
 }
 


More information about the svn-src-all mailing list