Remove gmx custom fixed int (e.g. gmx_int64_t) types
[alexxy/gromacs.git] / src / gromacs / random / seed.cpp
index 8609324ec8760827880c41aa03d22c6205c39fe5..2b5c855cc81db456385c9497e24d11f65047e080 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * 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;