'math.randomseed' always returns the two seed components

This commit is contained in:
Roberto Ierusalimschy committed 2019-07-19 13:31:53 -03:00
1 parent 3c0d3c6fbe
commit 2f22c6bb79
3 files changed
+15 -11

No files matched your search

+4 -2
View File
@@ -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,