randomize improved
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user