Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 May 2016 14:13:20 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300422 - head/sys/compat/ndis
Message-ID:  <201605221413.u4MEDKYR003581@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605221413.u4MEDKYR003581>