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>
Sun, 8 Mar 2020 16:31:39 +0000 (17:31 +0100)
commitb9f54c55929eddb6446f8d5c983fb8f1008eb0c6
tree70c08d43c4c39d31c1e7943867c4ca224bb6b8aa
parent52bf839394e683eec2fa8aafff5a0dd51d2dd365
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.
src/backend.c