Add assert.
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 1 Sep 2004 22:36:24 +0000 (22:36 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 1 Sep 2004 22:36:24 +0000 (22:36 +0000)
src/lib/random.c

index d4ffa6df216d0b43c56101ea85839020512e4d61..c9973d07b3102bca4f4f0f1a1e8a8c7d2086e717 100644 (file)
@@ -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;