We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe1b325 commit 4dc1281Copy full SHA for 4dc1281
src/random.cpp
@@ -634,7 +634,7 @@ bool Random_SanityCheck()
634
* GetOSRand() overwrites all 32 bytes of the output given a maximum
635
* number of tries.
636
*/
637
- static const ssize_t MAX_TRIES = 1024;
+ static constexpr int MAX_TRIES{1024};
638
uint8_t data[NUM_OS_RANDOM_BYTES];
639
bool overwritten[NUM_OS_RANDOM_BYTES] = {}; /* Tracks which bytes have been overwritten at least once */
640
int num_overwritten;
0 commit comments