<html>#2517: LoopControl uses RAND_MAX as the range for random(3)
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Roland Haas</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>new</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'>  Version:</td><td>development version</td></tr>
<tr><td style='text-align:right'>     Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>minor</td></tr>
<tr><td style='text-align:right'>Component:</td><td></td></tr>
</table>

<p>LoopControl switch from using <code>rand()</code> to using <code>random()</code> for its random numbers when exploring new tile sizes but kept using <code>RAND_MAX</code> to normalize the random number to the range [0,1).</p>
<p>It most likely makes no difference on Linux systems with glibc where (at least on my workstation) <code>RAND_MAX</code> is <code>INT_MAX</code> ie 2^31-1 which is the documented range for <code>random</code>.</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2517/loopcontrol-uses-rand_max-as-the-range-for'>https://bitbucket.org/einsteintoolkit/tickets/issues/2517/loopcontrol-uses-rand_max-as-the-range-for</a></p>
</html>