From: Peter van Dijk Date: Wed, 28 Aug 2019 13:40:07 +0000 (+0200) Subject: fix pdnsrandom docs X-Git-Tag: dnsdist-1.4.0-rc3~24^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=529faa8f18a685e0cd1c1661ddb99816d00ade9f;p=pdns fix pdnsrandom docs --- diff --git a/docs/lua-records/reference/misc.rst b/docs/lua-records/reference/misc.rst index c9f28d7f5..ab85b23f8 100644 --- a/docs/lua-records/reference/misc.rst +++ b/docs/lua-records/reference/misc.rst @@ -21,8 +21,8 @@ Other functions - `pdns.loglevels.Warning` - `pdns.loglevels.Error` -.. function:: pdnsrandom([maximum]) +.. function:: pdnsrandom([upper_bound]) Get a random number. - :param int maximum: The largest number to return. This is 2^32-1 by default. + :param int upper_bound: The upper bound. You will get a random number below this upper bound. diff --git a/pdns/recursordist/docs/lua-scripting/functions.rst b/pdns/recursordist/docs/lua-scripting/functions.rst index df6ca553c..1e3c503f3 100644 --- a/pdns/recursordist/docs/lua-scripting/functions.rst +++ b/pdns/recursordist/docs/lua-scripting/functions.rst @@ -16,8 +16,8 @@ These are some functions that don't really have a place in one of the other cate returns an unsigned integer identifying the thread handling the current request. -.. function:: pdnsrandom([maximum]) +.. function:: pdnsrandom([upper_bound]) Get a random number. - :param int maximum: The largest number to return. This is 2^32 by default. + :param int upper_bound: The upper bound. You will get a random number below this upper bound.