MINOR: backend: use a single call to ha_random32() for the random LB algo
authorWilly Tarreau <w@1wt.eu>
Sun, 8 Mar 2020 16:31:39 +0000 (17:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 11 Mar 2020 06:35:16 +0000 (07:35 +0100)
commitec40e1cb47b35763f4323153ac96009d5fd8535b
tree4cd364cfd6dd18aea756e3540c22373d9b21743f
parentd4ac067fe4708e5c7c77d8f356a53d7d376ced40
MINOR: backend: use a single call to ha_random32() for the random LB algo

For the random LB algorithm we need a random 32-bit hashing key that used
to be made of two calls to random(). Now we can simply perform a single
call to ha_random32() and get rid of the useless operations.

(cherry picked from commit b9f54c55929eddb6446f8d5c983fb8f1008eb0c6)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/backend.c