summaryrefslogtreecommitdiff
path: root/os/port/random.c
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2007-10-08 08:27:19 +0000
committerCharles.Forsyth <devnull@localhost>2007-10-08 08:27:19 +0000
commitc0b21416acb4b2c67ccb5a987b2ac933d5e32f68 (patch)
tree8bd526e3ebcd772c53cbd4c11fc36091473206b7 /os/port/random.c
parentbd5c8576acaaca73d75c7e34dcbaad9b105e4b26 (diff)
20071008-0926
Diffstat (limited to 'os/port/random.c')
-rw-r--r--os/port/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/port/random.c b/os/port/random.c
index 720541c0..62dac4fe 100644
--- a/os/port/random.c
+++ b/os/port/random.c
@@ -51,7 +51,7 @@ genrandom(void*)
break;
if(anyhigher())
sched();
- if(!rbnotfull(0))
+ if(rb.filled || !rbnotfull(0))
sleep(&rb.producer, rbnotfull, 0);
}
}