]> granicus.if.org Git - pdns/commitdiff
fix pdnsrandom docs
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 28 Aug 2019 13:40:07 +0000 (15:40 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 28 Aug 2019 13:42:12 +0000 (15:42 +0200)
docs/lua-records/reference/misc.rst
pdns/recursordist/docs/lua-scripting/functions.rst

index c9f28d7f5b369d96bcbf13a091facecb7c2715f0..ab85b23f892e175f831a43a1292f642e2517e1b6 100644 (file)
@@ -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.
index df6ca553c554371dd2b2ee4ebb8b327d7f0a3ace..1e3c503f3cc8f7909a228d82f9ca23e357ed362e 100644 (file)
@@ -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.