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

Rolf Eike Beer eike at sf-mail.de
Sun Dec 14 02:26:15 EST 2014


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 --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20141214/4998f16d/attachment.sig>


More information about the cmake-developers mailing list