[cmake-developers] OpenBSD and srand()/rand() changes

David Cole DLRdave at aol.com
Sun Dec 14 08:03:51 EST 2014


Sounds to me like the perfect thing to just ignore till the dust settles.
And then, after that, if there's no srand/rand on OpenBSD....... Well...
There will be, won't there?


On Sunday, December 14, 2014, Rolf Eike Beer <eike at sf-mail.de> wrote:

> Am Samstag, 13. Dezember 2014, 13:05:00 schrieben Sie:
> > On Thu, Dec 11, 2014 at 14:41:36 -0500, David Cole via cmake-developers
> wrote:
> > > Yes, setting an explicit seed should make subsequent calls to random
> > > be deterministic...
> >
> > Well, *we* want that, but I don't think that OpenBSD is making an
> > *awful* decision here.
> >
> > Even if you want deterministic, you're only deterministic on a single
> > platform, so if you want to get a deterministicly random (such an odd
> > phrase…) sequence, the best thing to do is to code up an Mersenne
> > Twister or something and ignore the rand/srand functions.
>
> Well, srand() and random() have ever been deterministic, and AFAIK using
> the
> same algorhtim and thus the same results on all supporting platforms, so
> it is
> the perfect choice for us. What is happening is that OpenBSD is fighting
> people
> that don't get that this is deterministic.
>
> Eike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20141214/52a75590/attachment.html>


More information about the cmake-developers mailing list