X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/44ff6c114bdcd5cef753d2788d029ce46e35727a..318c3c31be343fdba362cb60f33aab3e88798d8a:/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;