MINOR: pools: use cheaper randoms for fault injections
authorWilly Tarreau <w@1wt.eu>
Sat, 17 Apr 2021 13:50:28 +0000 (15:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 Apr 2021 13:24:33 +0000 (15:24 +0200)
commit20f88abad5f2a7bca45d9a9288c93d8cc259ca70
treeb23b4a0d1b61ce6e27f67a6f799c1d09709d9f8a
parent84ebfabf7f38f6da95c90f5740601afc67376913
MINOR: pools: use cheaper randoms for fault injections

ha_random() is quite heavy and uses atomic ops or even a lock on some
architectures. Here we don't seek good randoms, just statistical ones,
so let's use the statistical prng instead.
src/pool.c