<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Package: haproxy<br>
    Version: 1.5.8<br>
    <br>
    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.<br>
    <br>
    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.<br>
    For example, rand(1000) will never give numbers above 500, hence
    rand(2) will always give 0.<br>
    <br>
    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.<br>
    <br>
    Best regards,<br>
    <br>
    [0]
<a class="moz-txt-link-freetext" href="https://github.com/haproxy/haproxy/commit/1228dc0e7ae4a6b16c0c7f74a28f8e84601b526c">https://github.com/haproxy/haproxy/commit/1228dc0e7ae4a6b16c0c7f74a28f8e84601b526c</a><br>
    [1]
    <a class="moz-txt-link-freetext" href="http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#7.3.2-rand">http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#7.3.2-rand</a><br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
  </body>
</html>