<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 6, 2014 at 5:05 PM, Bradley Lowekamp <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think it is desirable for the same output to result of 1 thread is used or is 80 is used. To do this you need to re-initalize the generator at every scanline, plus a single settable seed for the class.<br>
<br>
Brad<br>
<div class=""><br></div></blockquote><div><br></div><div>Also a strong +1 to this.<br><br>Just to restate what I believe Brad is saying: Ensure that the smallest unit of work is the scanline (or some equivalent), reinitialize the thread-local PRNG at the start of each scanline (or the equivalent), with the seed value as a function of only the scanline number and some constant with a fixed default value. If a user wants different or non-deterministic output, then they may initialize the constant to their own value before generating the data.<br>
<br></div></div>-- <br>Brian Helba<br>Medical Imaging<br>Kitware, Inc.<br>
</div></div>