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
+1 -1
View File
@@ -55,7 +55,7 @@ msx: bdir
rm -f $(PROJNAME) *.bin *.img
zxspec: bdir
$(Z80BUILD) +zx -lndos -clib=ansi -pragma-define:ansicolumns=40 -create-app $(CFILES) -o $(PROJNAME)
$(Z80BUILD) +zx -vn -lndos -clib=ansi -pragma-define:ansicolumns=40 -pragma-define:CLIB_KBHIT_NOSTORE=1 -create-app $(CFILES) -o $(PROJNAME)
mv $(PROJNAME).tap $(BUILDDIR)/$(PROJNAME)-zxspec.tap
rm $(PROJNAME)
+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