Check in code for new random number generator
This commit is contained in:
@@ -57,15 +57,19 @@ eng::string id_vector_debug_string(const IdVector &idv);
|
||||
// Unions and sorts two ID vectors.
|
||||
IdVector sort_union_id_vectors(const IdVector &v1, const IdVector &v2);
|
||||
|
||||
// Get a 64-bit hashvalue for a string.
|
||||
// Get a 128-bit hashvalue for a string.
|
||||
HashValue hash_string(const eng::string &str);
|
||||
|
||||
// Get a 64-bit hashvalue for an ID vector.
|
||||
// Get a 128-bit hashvalue for an ID vector.
|
||||
HashValue hash_id_vector(const IdVector &idv);
|
||||
|
||||
// Convert a hash to a hexadecimal string.
|
||||
// Convert a 128-bit hash to a hexadecimal string.
|
||||
eng::string hash_to_hex(const HashValue &hash);
|
||||
|
||||
// Hash four integers together to 64 bits.
|
||||
// This is a good hash, but not cryptographically good.
|
||||
uint64_t hash_ints(uint64_t n1, uint64_t n2, uint64_t n3, uint64_t n4);
|
||||
|
||||
// Split a string into multiple strings
|
||||
StringVec split(const eng::string &s, char sep);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user