samples/golf/src/golf/PoissonDisk.hpp
// Stateless and repeatable function that returns a
// pseduo-random number in the range [0, 0xFFFFFFFF].
Stateless and repeatable function that returns a
pseduo-random number in the range [0, 0xFFFFFFFF].
Stateless and repeatable function that returns a pseduo - random number in the range [ 0 0xFFFFFFFF ] .
PDS_CEXPR auto Hash(const std::uint32_t seed) noexcept -> std::uint32_t {
  static_assert(sizeof(unsigned int) == sizeof(std::uint32_t),
                "integer size mismatch");
  auto i = std::uint32_t{(seed ^ 12345391U) * 2654435769U};  
  i ^= (i << 6U) ^ (i >> 26U);                               
  i *= 2654435769U;                                          
  i += (i << 5U) ^ (i >> 12U);                               
  return i;
}
PDS_CEXPR auto Hash ( const std :: uint32_t seed ) noexcept -> std :: uint32_t { static_assert ( sizeof ( unsigned int ) == sizeof ( std :: uint32_t ) , " " ) ; auto i = std :: uint32_t { ( seed ^ 12345391U ) * 2654435769U } ; i ^= ( i << 6U ) ^ ( i >> 26U ) ; i *= 2654435769U ; i += ( i << 5U ) ^ ( i >> 12U ) ; return i ; }
Stateless and repeatable function that returns a
pseduo-random number in the range [0, 0xFFFFFFFF].
Stateless and repeatable function that returns a pseduo - random number in the range [ 0 0xFFFFFFFF ] .
// So that we can use unsigned int literals, e.g. 42u. // NOLINT // NOLINT // NOLINT // NOLINT