On Thu, Nov 5, 2009 at 9:14 AM, David Cole <span dir="ltr"><<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Would anyone object to changing this to call srand only on the very first call to STRING(RANDOM in a given invocation of cmake? (Or does somebody have a better suggestion? Perhaps passing the seed value in as an optional parameter...?)<br>
<br></blockquote><div><br>I would agree with default seeding only once at the first call. This would mirror how almost every other random number generator I've used.<br><br>Being able to set the seed may also be useful, and again would mirror most RNG APIs. However, it isn't absolutely necessary.<br>
<br>James<br><br><br> </div></div>