X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/98421fc1a6832ad5de4b3f6171852437aa3e0fb2..6a024d24d97cb5d42c0091571735475b849f59f4:/rand/grand.c diff --git a/rand/grand.c b/rand/grand.c index e4451917..a95c89f0 100644 --- a/rand/grand.c +++ b/rand/grand.c @@ -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;