[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 2e5a89f: Minor improvements to (random t) documen
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] emacs-25 2e5a89f: Minor improvements to (random t) documentation |
Date: |
Tue, 19 Jan 2016 05:33:34 +0000 |
branch: emacs-25
commit 2e5a89fad151f8efa97aea3f400823a95bee6289
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
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.
---
doc/lispref/numbers.texi | 6 +++---
src/fns.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/doc/lispref/numbers.texi b/doc/lispref/numbers.texi
index 3a9483a..28eb6b1 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
(@pxref{Integer Basics}).
If @var{limit} is @code{t}, it means to choose a new seed as if Emacs
-were restarting. The new seed will be set from the system entropy, if
-that is available, or from the current time and Emacs process's PID
-(@pxref{System Environment, emacs-pid}) if not.
+were restarting, typically from the system entropy. On systems
+lacking entropy pools, choose the seed from less-random volatile data
+such as the current time.
If @var{limit} is a string, it means to choose a new seed based on the
string's contents.
diff --git a/src/fns.c b/src/fns.c
index 19fa440..86ad333 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -51,7 +51,7 @@ and `most-positive-fixnum', inclusive, are equally likely.
With positive integer LIMIT, return random number in interval [0,LIMIT).
With argument t, set the random number seed from the system's entropy
-pool, or from the current time and pid if entropy is unavailable.
+pool if available, otherwise from less-random volatile data such as the time.
With a string argument, set the seed based on the string's contents.
Other values of LIMIT are ignored.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-25 2e5a89f: Minor improvements to (random t) documentation,
Paul Eggert <=