summaryrefslogtreecommitdiff
path: root/emu
diff options
context:
space:
mode:
Diffstat (limited to 'emu')
-rw-r--r--emu/port/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/emu/port/random.c b/emu/port/random.c
index 05ae2b9a..90d20c6a 100644
--- a/emu/port/random.c
+++ b/emu/port/random.c
@@ -52,7 +52,7 @@ genrandom(void *v)
for(;;)
if(++rb.randomcount > 65535)
break;
- if(!rbnotfull(0))
+ if(rb.filled || !rbnotfull(0))
Sleep(&rb.producer, rbnotfull, 0);
}
}