diff options
| author | Paul Eggert | 2016-01-18 21:31:09 -0800 |
|---|---|---|
| committer | Paul Eggert | 2016-01-18 21:33:31 -0800 |
| commit | 2e5a89fad151f8efa97aea3f400823a95bee6289 (patch) | |
| tree | 8a3953a8b18376525d92897237b4696c837ff2a9 | |
| parent | 0ed8b42d22bbcacd03c3f82bee9f855815b8b284 (diff) | |
| download | emacs-2e5a89fad151f8efa97aea3f400823a95bee6289.tar.gz emacs-2e5a89fad151f8efa97aea3f400823a95bee6289.zip | |
Minor improvements to (random t) documentation
* doc/lispref/numbers.texi (Random Numbers):
* src/fns.c (Frandom):
Omit unnecessary details about randomness fallback.
Say that it is a fallback.
| -rw-r--r-- | doc/lispref/numbers.texi | 6 | ||||
| -rw-r--r-- | src/fns.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/lispref/numbers.texi b/doc/lispref/numbers.texi index 3a9483af967..28eb6b18afa 100644 --- a/doc/lispref/numbers.texi +++ b/doc/lispref/numbers.texi | |||
| @@ -1252,9 +1252,9 @@ any integer representable in Lisp, i.e., an integer between | |||
| 1252 | (@pxref{Integer Basics}). | 1252 | (@pxref{Integer Basics}). |
| 1253 | 1253 | ||
| 1254 | If @var{limit} is @code{t}, it means to choose a new seed as if Emacs | 1254 | If @var{limit} is @code{t}, it means to choose a new seed as if Emacs |
| 1255 | were restarting. The new seed will be set from the system entropy, if | 1255 | were restarting, typically from the system entropy. On systems |
| 1256 | that is available, or from the current time and Emacs process's PID | 1256 | lacking entropy pools, choose the seed from less-random volatile data |
| 1257 | (@pxref{System Environment, emacs-pid}) if not. | 1257 | such as the current time. |
| 1258 | 1258 | ||
| 1259 | If @var{limit} is a string, it means to choose a new seed based on the | 1259 | If @var{limit} is a string, it means to choose a new seed based on the |
| 1260 | string's contents. | 1260 | string's contents. |
| @@ -51,7 +51,7 @@ and `most-positive-fixnum', inclusive, are equally likely. | |||
| 51 | 51 | ||
| 52 | With positive integer LIMIT, return random number in interval [0,LIMIT). | 52 | With positive integer LIMIT, return random number in interval [0,LIMIT). |
| 53 | With argument t, set the random number seed from the system's entropy | 53 | With argument t, set the random number seed from the system's entropy |
| 54 | pool, or from the current time and pid if entropy is unavailable. | 54 | pool if available, otherwise from less-random volatile data such as the time. |
| 55 | With a string argument, set the seed based on the string's contents. | 55 | With a string argument, set the seed based on the string's contents. |
| 56 | Other values of LIMIT are ignored. | 56 | Other values of LIMIT are ignored. |
| 57 | 57 | ||