randomize improved

This commit is contained in:
Luxferre
2026-01-07 10:45:25 +02:00
parent eebee1b42c
commit b670ddf233
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -33,7 +33,10 @@ void randomize() {
clrscr();
puts("Press any key to start...");
while(!kbhit()) entropy++;
cgetc();
while(kbhit()) cgetc();
#ifdef SPECTRUM
while(!kbhit()) entropy++;
#endif
srand(entropy);
clrscr();
#else