Package: haproxy Version: 1.5.8 I'd like to request this upstream commit [0] to be included in debian haproxy and hopefully be backported to wheezy. The rand() function in the config is otherwise completely broken.
The rand(<range>) function [1] is supposed to give random numbers between 0 and <range>. Without this patch, it gives random numbers between 0 and <range>/2. For example, rand(1000) will never give numbers above 500, hence rand(2) will always give 0. I've locally built haproxy from the debian package with this patch as last in the quilt series, it applies cleanly and works as expected. Best regards, [0] https://github.com/haproxy/haproxy/commit/1228dc0e7ae4a6b16c0c7f74a28f8e84601b526c [1] http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#7.3.2-rand