diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-07-25 14:56:42 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-07-25 14:56:42 -0300 |
commit | b47f2cd068fb14a27d3da6fb3d08305b7d7b354d (patch) | |
tree | 3a5900a3991d13f029abf89ca87e478ba14e3c1b /manual | |
parent | e885dee5ab4dbee2457ee2023340e848fdabdef9 (diff) | |
download | lua-b47f2cd068fb14a27d3da6fb3d08305b7d7b354d.tar.gz lua-b47f2cd068fb14a27d3da6fb3d08305b7d7b354d.tar.bz2 lua-b47f2cd068fb14a27d3da6fb3d08305b7d7b354d.zip |
Small improvements in the manual
Diffstat (limited to 'manual')
-rw-r--r-- | manual/manual.of | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/manual/manual.of b/manual/manual.of index f92be508..659daa55 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
@@ -1,4 +1,4 @@ | |||
1 | @Ci{$Id: manual.of,v 1.175 2018/06/18 19:17:35 roberto Exp roberto $} | 1 | @Ci{$Id: manual.of $} |
2 | @C{[(-------------------------------------------------------------------------} | 2 | @C{[(-------------------------------------------------------------------------} |
3 | @manual{ | 3 | @manual{ |
4 | 4 | ||
@@ -4567,7 +4567,8 @@ This is the only option that can raise a memory error. | |||
4567 | 4567 | ||
4568 | } | 4568 | } |
4569 | 4569 | ||
4570 | This function returns 0 if given an invalid option in @id{what}. | 4570 | This function returns 0 to signal an invalid option in @id{what}; |
4571 | even then the valid options are handled correctly. | ||
4571 | 4572 | ||
4572 | } | 4573 | } |
4573 | 4574 | ||
@@ -7488,7 +7489,7 @@ you should call @Lid{math.randomseed} explicitly. | |||
7488 | 7489 | ||
7489 | The results from this function have good statistical qualities, | 7490 | The results from this function have good statistical qualities, |
7490 | but they are not cryptographically secure. | 7491 | but they are not cryptographically secure. |
7491 | (For instance, there are no garanties that it is hard | 7492 | (For instance, there are no guarantees that it is hard |
7492 | to predict future results based on the observation of | 7493 | to predict future results based on the observation of |
7493 | some number of previous results.) | 7494 | some number of previous results.) |
7494 | 7495 | ||
@@ -7496,8 +7497,9 @@ some number of previous results.) | |||
7496 | 7497 | ||
7497 | @LibEntry{math.randomseed (x [, y])| | 7498 | @LibEntry{math.randomseed (x [, y])| |
7498 | 7499 | ||
7499 | Sets @id{x} and @id{y} as the @Q{seed} | 7500 | The integer parameters @id{x} and @id{y} are |
7500 | for the pseudo-random generator: | 7501 | concatenated into a 128-bit @Q{seed} that |
7502 | is used to reinitialize the pseudo-random generator; | ||
7501 | equal seeds produce equal sequences of numbers. | 7503 | equal seeds produce equal sequences of numbers. |
7502 | The default for @id{y} is zero. | 7504 | The default for @id{y} is zero. |
7503 | 7505 | ||