aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPaul Eggert2012-08-31 18:04:26 -0700
committerPaul Eggert2012-08-31 18:04:26 -0700
commit0e23ef9ddeefadcba94824c09e412c961de283e7 (patch)
tree8bd5c2973ce8d2f96b727b2eed8b4603a577a141 /etc
parent5bf647499a5f6d08ac8aa4809ebce22acf1330b3 (diff)
downloademacs-0e23ef9ddeefadcba94824c09e412c961de283e7.tar.gz
emacs-0e23ef9ddeefadcba94824c09e412c961de283e7.zip
Better seed support for (random).
* doc/lispref/numbers.texi (Random Numbers): Document new behavior of the calls (random) and (random STRING). * etc/NEWS: Document new behavior of (random), (random "string"). * lisp/play/5x5.el, lisp/play/animate.el, lisp/play/cookie1.el: * lisp/play/dissociate.el, lisp/play/doctor.el, lisp/play/dunnet.el: * lisp/play/gomoku.el, lisp/play/landmark.el, lisp/play/mpuz.el: * lisp/play/tetris.el, lisp/play/zone.el: * lisp/calc/calc-comb.el (math-init-random-base): * lisp/play/blackbox.el (bb-init-board): * lisp/play/life.el (life): * lisp/server.el (server-use-tcp): * lisp/type-break.el (type-break): Remove unnecessary call to (random t). * lisp/net/sasl.el (sasl-unique-id-function): Change (random t) to (random), now that the latter is more random. * lisp/play/life.el (life-initialized): Remove no-longer-needed var. * lisp/gnus/gnus-sync.el (gnus-sync-lesync-setup): * lisp/gnus/message.el (message-canlock-generate, message-unique-id): Change (random t) to (random), now that the latter is more random. * lisp/org/org-id.el (org-id-uuid): Change (random t) to (random), now that the latter is more random. * src/emacs.c (main): Call init_random. * src/fns.c (Frandom): Set the seed from a string argument, if given. Remove long-obsolete Gentzel cruft. * src/lisp.h, src/sysdep.c (seed_random): Now takes address and size, not long. (init_random): New function.
Diffstat (limited to 'etc')
-rw-r--r--etc/ChangeLog5
-rw-r--r--etc/NEWS5
2 files changed, 10 insertions, 0 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog
index 11aba88c6a1..f3f244c7e39 100644
--- a/etc/ChangeLog
+++ b/etc/ChangeLog
@@ -1,3 +1,8 @@
12012-09-01 Paul Eggert <eggert@cs.ucla.edu>
2
3 Better seeds for (random).
4 * NEWS: Document new behavior of (random), (random "string").
5
12012-08-28 Andreas Schwab <schwab@linux-m68k.org> 62012-08-28 Andreas Schwab <schwab@linux-m68k.org>
2 7
3 * charsets/MULE-ethiopic.map: Fix typo in comment. 8 * charsets/MULE-ethiopic.map: Fix typo in comment.
diff --git a/etc/NEWS b/etc/NEWS
index 14521744670..58298a9a437 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -527,6 +527,11 @@ inefficiency, and not namespace-clean.
527 527
528* Incompatible Lisp Changes in Emacs 24.3 528* Incompatible Lisp Changes in Emacs 24.3
529 529
530** (random) by default now returns a different random sequence in
531every Emacs run. Use (random S), where S is a string, to set the
532random seed to a value based on S, in order to get a repeatable
533sequence in later calls.
534
530** The function `x-select-font' can return a font spec, instead of a 535** The function `x-select-font' can return a font spec, instead of a
531font name as a string. Whether it returns a font spec or a font name 536font name as a string. Whether it returns a font spec or a font name
532depends on the graphical library. 537depends on the graphical library.