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

David Cole DLRdave at aol.com
Thu Dec 11 14:41:36 EST 2014


Yes, setting an explicit seed should make subsequent calls to random
be deterministic...


On Wed, Dec 10, 2014 at 9:50 AM, Rolf Eike Beer <eike at sf-mail.de> wrote:
> Am 10.12.2014 15:38, schrieb Ben Boeckel:
>>
>> Hi,
>>
>> It appears[1] as though OpenBSD has changed srand and rand which we use
>> in CMake for string(RANDOM) and with the change, RANDOM_SEED will be a
>> no-op there.
>>
>> Do we want to use rand_deterministic and srand_determinitic or does it
>> not matter?
>
>
> From what I see there we want to use the deterministic variants. May also
> get us rid of some warnings on OpenBSD.
>
> Eike
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake-developers


More information about the cmake-developers mailing list