From 91460148b2c8b391cbdc8d8b94c991dad546ef10 Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Sun, 22 May 2016 14:13:20 +0000 Subject: [PATCH] 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 --- sys/compat/ndis/subr_ntoskrnl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/compat/ndis/subr_ntoskrnl.c b/sys/compat/ndis/subr_ntoskrnl.c index 9b5e40344f8..cfa97275d7e 100644 --- a/sys/compat/ndis/subr_ntoskrnl.c +++ b/sys/compat/ndis/subr_ntoskrnl.c @@ -3196,8 +3196,6 @@ static void srand(unsigned int seed) { - if (seed == 0) - seed = 1; srandom(seed); }