projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a051c00
)
Add assert.
author
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 1 Sep 2004 22:36:24 +0000
(22:36 +0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 1 Sep 2004 22:36:24 +0000
(22:36 +0000)
src/lib/random.c
patch
|
blob
|
history
diff --git
a/src/lib/random.c
b/src/lib/random.c
index d4ffa6df216d0b43c56101ea85839020512e4d61..c9973d07b3102bca4f4f0f1a1e8a8c7d2086e717 100644
(file)
--- a/
src/lib/random.c
+++ b/
src/lib/random.c
@@
-42,6
+42,7
@@
random_bytes (void *buf_, size_t size)
{
uint8_t *buf;
+ ASSERT (inited);
for (buf = buf_; size-- > 0; buf++)
{
uint8_t s_k;