fix: using rand() in single flips will always be heads

This commit is contained in:
2025-06-19 18:14:33 +02:00
parent b31071bb91
commit fa19fc2789

View File

@@ -28,7 +28,7 @@ static inline ull pow2_ceil(ull x) {
int main(int argc, char** argv) {
// return the result if no input
if (argc <= 1) return printf("%s\n", (rand() & 1) ? "heads" : "tails");
if (argc <= 1) return printf("%s\n", (clock() & 1) ? "heads" : "tails");
dynrdat* rdat = NULL;