ndis(4): Avoid overflow.
commit334d424627d50cc4cc73e73954534e23a1f91168
authorpfg <pfg@FreeBSD.org>
Sat, 21 May 2016 17:52:44 +0000 (21 17:52 +0000)
committerpfg <pfg@FreeBSD.org>
Sat, 21 May 2016 17:52:44 +0000 (21 17:52 +0000)
tree8e6527886eee50cea3b9335a35cf192bda236fc3
parente0f6fb692ee6ec627ff147b11b0c3840d5446b97
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
sys/compat/ndis/subr_ntoskrnl.c