summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-05-21 17:38:43 +0000
committerpfg <pfg@FreeBSD.org>2016-05-21 17:38:43 +0000
commite0f6fb692ee6ec627ff147b11b0c3840d5446b97 (patch)
tree60338b0901c96324879447ca92f9e20b0ede77b1 /lib/libc/regex
parent04232be1fd901c40512482a4eba363a99a79b229 (diff)
downloadFreeBSD-src-e0f6fb692ee6ec627ff147b11b0c3840d5446b97.zip
FreeBSD-src-e0f6fb692ee6ec627ff147b11b0c3840d5446b97.tar.gz
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
Diffstat (limited to 'lib/libc/regex')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud