progs/mkphrase.c: Fix trailing spaces in usage message.
[catacomb] / rand / grand.c
index e445191..a95c89f 100644 (file)
@@ -97,6 +97,7 @@ uint32 grand_defaultrange(grand *r, uint32 l)
    * @byte@, but by that point it must be able to satisfy us.
    */
 
+  assert(l);
   if (r->ops->max && r->ops->max >= l) {
     w = r->ops->raw;
     m = r->ops->max;