Use cryptographic RNG to generate the shard connection serial key

This commit is contained in:
2022-07-24 00:29:19 +02:00
parent 741bfb675b
commit ca0d608a87
3 changed files with 56 additions and 1 deletions

View File

@@ -14,6 +14,8 @@ namespace Rand {
int32_t randWeighted(const std::vector<int32_t>& weights);
uint64_t cryptoRand();
float randFloat(float startInclusive, float endExclusive);
float randFloat(float endExclusive);
float randFloat();