Consistently use uppercase hex digits

This commit is contained in:
Rangi42
2023-10-29 14:24:58 -04:00
committed by Rangi
parent ae38ebaf6f
commit 45c2a5e4ec
7 changed files with 9 additions and 9 deletions

View File

@@ -53,7 +53,7 @@ static unsigned long long getRandomBits(unsigned count) {
randbits |= (unsigned long long)data << randcount;
randcount += 8;
}
unsigned long long result = randbits & ((1ull << count) - 1);
unsigned long long result = randbits & ((1ULL << count) - 1);
randbits >>= count;
randcount -= count;
return result;