mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
9d6672e13b
commit
91460148b2
1 changed files with 0 additions and 2 deletions
|
|
@ -3196,8 +3196,6 @@ static void
|
|||
srand(unsigned int seed)
|
||||
{
|
||||
|
||||
if (seed == 0)
|
||||
seed = 1;
|
||||
srandom(seed);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue