X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/1da1ed6a5815deef6c33d74f1eb3c856793df3e5..1b420890ac399d1844ab6c4fe0e0e22ba8fbe3ad:/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;