A small tweak to lua random

This commit is contained in:
2022-04-06 15:09:28 -04:00
parent 89365ea9ba
commit 453809b65c
3 changed files with 18 additions and 4 deletions

View File

@@ -70,6 +70,9 @@ eng::string hash_to_hex(const HashValue &hash);
// 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);
// Convert a 64-bit hash value into a floating point number between 0 and 1.
double hash_to_double(uint64_t hash);
// Split a string into multiple strings
StringVec split(const eng::string &s, char sep);