locking support for random() prng
authorRich Felker <dalias@aerifal.cx>
Wed, 29 Jun 2011 19:29:52 +0000 (15:29 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 29 Jun 2011 19:29:52 +0000 (15:29 -0400)
commitf7dff1852b996363061e04531a15a3403351c375
treeaeed815eab8e766a10f0af833b8e31dc2d826073
parentaf3d5405b8d7b00c121643d7a0c0b9bb31cc7139
locking support for random() prng

these interfaces are required to be thread-safe even though they are
not state-free. the random number sequence is shared across all
threads.
src/prng/random.c