2
0
mirror of https://github.com/boostorg/random.git synced 2026-01-19 04:22:17 +00:00

Allow 64 bit seeds to be passed instead of a 32 bit limit

This commit is contained in:
Matt Borland
2025-01-30 12:41:15 -05:00
parent 0d44298d45
commit bfb053bb1b

View File

@@ -21,7 +21,14 @@ using boost::random::test::RandomNumberEngine;
BOOST_CONCEPT_ASSERT((RandomNumberEngine< BOOST_RANDOM_URNG >));
typedef BOOST_RANDOM_URNG::result_type result_type;
// With the xoshiro family we are using splitmix64 we need to allow 64 bit seeds
// even in the case that we are retuning doubles
#ifndef BOOST_RANDOM_PROVIDED_SEED_TYPE
typedef boost::random::detail::seed_type<result_type>::type seed_type;
#else
typedef BOOST_RANDOM_PROVIDED_SEED_TYPE seed_type;
#endif
#ifdef BOOST_MSVC
#pragma warning(push)