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

[csmith-project/csmith] e5d8c8: Get the random seed from `arc4random_buf', if avai...



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

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

  Log Message:
  -----------
  Get the random seed from `arc4random_buf', if available.

Obtain the seed for the (deterministic) random-number generator by
calling `arc4random_buf', if that function is available.  It is
available on BSD and OS X in the standard library, and on Linux in
"libbsd".

If that function is not available, use the previous method: get the seed
from the timestamp counter.

This commit was inspired by a patch from the OpenBSD port of Csmith:
https://github.com/openbsd/ports/commit/8030557cd10b7f7ab6f2aac7140c50d9d09aa916


  Commit: 124c825c9f940ca0e742886c769d43611b290c36
      https://github.com/csmith-project/csmith/commit/124c825c9f940ca0e742886c769d43611b290c36
  Author: Eric Eide <eeide@cs.utah.edu>
  Date:   2017-05-27 (Sat, 27 May 2017)

  Changed paths:
    M cmake_config.h.in

  Log Message:
  -----------
  Fix nit in "cmake_config.h.in"; whoops!


Compare: https://github.com/csmith-project/csmith/compare/9b80960bbe23...124c825c9f94