From 529faa8f18a685e0cd1c1661ddb99816d00ade9f Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Wed, 28 Aug 2019 15:40:07 +0200 Subject: [PATCH] fix pdnsrandom docs --- docs/lua-records/reference/misc.rst | 4 ++-- pdns/recursordist/docs/lua-scripting/functions.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/lua-records/reference/misc.rst b/docs/lua-records/reference/misc.rst index c9f28d7f5b..ab85b23f89 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 df6ca553c5..1e3c503f3c 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. -- 2.47.2