HomeFreeBSD

ndis(4): Avoid overflow.

Description

ndis(4): Avoid overflow.

This is a long standing problem: our random() function returns an
unsigned integer but the rand provided by ndis(4) returns an int.
Scale it down.

MFC after: 2 weeks

Details

Provenance
pfgAuthored on
Parents
rS300376: ndis(4): Better mimic the behavior of rand() on Windows.
Branches
Unknown
Tags
Unknown