]> git.pond.sub.org Git - empserver/commit
Revert "MinGW provides random() in -liberty, no need to replace it"
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 5 Dec 2009 14:09:19 +0000 (15:09 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 5 Dec 2009 14:09:19 +0000 (15:09 +0100)
commitc8231b120b829cffb0929a15b08c1270e3262e10
tree5d1b96fdb7002e322ac6a5b4435a2a49e66aac11
parentc9508fa5888c68728b3c0975836795cf3bce5954
Revert "MinGW provides random() in -liberty, no need to replace it"

This reverts commit 3ec807e99a8dfa6094660896d17bf20dd92e0de8.

Our nightly build test cases rely on the PRN sequence generated by GNU
libc's random().  We used to have such a PRNG in our tree (derived
from an old version of GNU libc's), for use under Windows.  Thus we
got the same PRN sequence on both our nightly test systems.  Commit
3ec807e9 switched to -liberty under Windows and removed our random().
Now we got a different sequence there, breaking the test cases.

Test cases still don't work on non-Windows systems where random()
doesn't match GNU libc's.  We should switch to a PRNG that produces
the same sequence everywhere.

Conflicts:

src/lib/w32/w32misc.h
Make.mk
src/lib/w32/random.c [new file with mode: 0644]
src/lib/w32/random.h [new file with mode: 0644]
src/lib/w32/random_r.c [new file with mode: 0644]
src/lib/w32/w32misc.h