summaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-07-19 13:31:53 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-07-19 13:31:53 -0300
commit2f22c6bb79d209a55b3fc8e0b2d9c9f89f038174 (patch)
tree9fcece0aa1fa65f52b547c51e3c39181815f0887 /manual
parent3c0d3c6fbeea18f257102c62a01b036c7a5c5161 (diff)
downloadlua-github-2f22c6bb79d209a55b3fc8e0b2d9c9f89f038174.tar.gz
'math.randomseed' always returns the two seed components
Diffstat (limited to 'manual')
-rw-r--r--manual/manual.of6
1 files changed, 4 insertions, 2 deletions
diff --git a/manual/manual.of b/manual/manual.of
index 7f2596fa..1646f113 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -7798,8 +7798,10 @@ The default for @id{y} is zero.
When called with no arguments,
Lua generates a seed with
a weak attempt for randomness.
-In this case,
-the call returns the two seed components that were used.
+
+This function returns the two seed components
+that were effectively used,
+so that setting them again repeats the sequence.
To ensure a required level of randomness to the initial state
(or contrarily, to have a deterministic sequence,