From 2f22c6bb79d209a55b3fc8e0b2d9c9f89f038174 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 19 Jul 2019 13:31:53 -0300 Subject: 'math.randomseed' always returns the two seed components --- manual/manual.of | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'manual') 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, -- cgit v1.2.3-55-g6feb