mirror of
https://github.com/paboyle/Grid.git
synced 2025-08-18 04:01:53 +01:00
update rng number algo
This commit is contained in:
@@ -514,7 +514,7 @@ inline void splitRngState(RngState& rs, const RngState& rs0, const std::string&
|
|||||||
|
|
||||||
inline void computeHashWithInput(uint32_t hash[8], const RngState& rs, const std::string& input)
|
inline void computeHashWithInput(uint32_t hash[8], const RngState& rs, const std::string& input)
|
||||||
{
|
{
|
||||||
sha256::processInput(hash, rs.hash, rs.numBytes, (const uint8_t*)input.c_str(), input.length() + 1);
|
sha256::processInput(hash, rs.hash, rs.numBytes, (const uint8_t*)input.c_str(), input.length());
|
||||||
}
|
}
|
||||||
|
|
||||||
inline uint64_t randGen(RngState& rs)
|
inline uint64_t randGen(RngState& rs)
|
||||||
|
Reference in New Issue
Block a user