[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[csmith-project/csmith] 9b8096: Use `srand48_deterministic` if it is available.



  Branch: refs/heads/master
  Home:   https://github.com/csmith-project/csmith
  Commit: 9b80960bbe236a4cdab7e9385f1e487c715fa0b2
      https://github.com/csmith-project/csmith/commit/9b80960bbe236a4cdab7e9385f1e487c715fa0b2
  Author: Eric Eide <eeide@cs.utah.edu>
  Date:   2017-05-26 (Fri, 26 May 2017)

  Changed paths:
    M CMakeLists.txt
    M cmake_config.h.in
    M config.h.in
    M configure
    M configure.ac
    M src/AbsRndNumGenerator.cpp
    M src/DefaultRndNumGenerator.cpp
    M src/SimpleDeltaRndNumGenerator.cpp

  Log Message:
  -----------
  Use `srand48_deterministic` if it is available.

OpenBSD requires a special call to activate the standard, deterministic
behavior of `lrand48'.  Check for the special function and use it if it
is found.  (As far as I know, it is only available on OpenBSD.)

In addition to the principle change above, remove some old,
commented-out calls to `srand48' --- to avoid somebody uncommenting them
in the future and forgetting to call `srnd48_deterministic' instead!