/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2015,2016,2018, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
namespace gmx
{
-gmx_uint64_t
+uint64_t
makeRandomSeed()
{
std::random_device rd;
- gmx_uint64_t result;
+ uint64_t result;
std::size_t deviceBits = std::numeric_limits<std::random_device::result_type>::digits;
- std::size_t resultBits = std::numeric_limits<gmx_uint64_t>::digits;
+ std::size_t resultBits = std::numeric_limits<uint64_t>::digits;
- result = static_cast<gmx_uint64_t>(rd());
+ result = static_cast<uint64_t>(rd());
for (std::size_t bits = deviceBits; bits < resultBits; bits += deviceBits)
{
- result = (result << deviceBits) | static_cast<gmx_uint64_t>(rd());
+ result = (result << deviceBits) | static_cast<uint64_t>(rd());
}
return result;