freebsd-skq/sys/compat
Pedro F. Giffuni 0e6d3c6d16 ndis(4): Better mimic the behavior of rand() on Windows.
In ndis(4) we expose a rand() function that was constantly reseeding
with a time depending function every time it was called. This
essentially broke the reasoning behind seeding, and rendered srand()
a no-op.

Keep it simple, just use random() and srandom() as it's meant to work.
It  would have been tempting to just go for arc4random() but we
want to mimic Microsoft, and we don't need crypto-grade randomness
here.

PR:		209616
MFC after:	2 weeks
2016-05-21 17:38:43 +00:00
..
cloudabi Add implementation of robust mutexes, hopefully close enough to the 2016-05-17 09:56:22 +00:00
cloudabi64 Make CloudABI's way of doing TLS more friendly to userspace emulators. 2016-04-06 11:11:31 +00:00
freebsd32 The sendfile(2) allows to send extra data from userspace before the file 2016-03-29 19:57:11 +00:00
ia32 Implement vsyscall hack. Prior to 2.13 glibc uses vsyscall 2016-01-09 20:18:53 +00:00
linprocfs linprocfs_doproclimits: Initialize error return before use 2016-04-20 01:03:06 +00:00
linsysfs Add support to the jail framework to be able to mount linsysfs(5) and 2015-07-19 08:52:35 +00:00
linux Add implementation of robust mutexes, hopefully close enough to the 2016-05-17 09:56:22 +00:00
linuxkpi/common Only lock Giant when needed in the LinuxKPI. 2016-05-16 17:41:25 +00:00
ndis ndis(4): Better mimic the behavior of rand() on Windows. 2016-05-21 17:38:43 +00:00
netbsd Remove some more NetBSD compat shims and other unused bits from these 2012-09-10 18:49:49 +00:00
svr4 Allow to build svr4 module with SYSV support separatelly from the kernel build. 2016-04-23 20:31:18 +00:00
x86bios x86bios: spelling fix in a comment. 2016-04-30 00:34:04 +00:00