1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00
emacs/doc
Eli Zaretskii 3ffe81e245 Make 'random' seeds cryptographically secure if possible
* configure.ac: Check for "/dev/urandom".

* src/sysdep.c (init_random) [HAVE_DEV_URANDOM]: Read the stream
for the seed from "/dev/urandom".
[WINDOWSNT]: Obtain the stream for the seed from w32 APIs.
* src/fns.c (Frandom): Update the doc string to indicate that
system entropy is used when available.
* src/w32.c: Include wincrypt.h.
(w32_init_crypt_random, w32_init_random): New functions, use the
CryptGenRandom API.
(globals_of_w32): Initialize w32_crypto_hprov handle to zero.
* src/w32.h (w32_init_random): Add prototype.

* doc/lispref/numbers.texi (Random Numbers): Document more details
about 't' as the argument to 'random'.

* etc/NEWS: Mention that '(random t)' now uses a cryptographically
strong seed if possible.

(Bug#22202)
2016-01-15 11:47:55 +02:00
..
emacs Fix time-stamp-time-zone bugs introduced in July 2016-01-12 09:09:52 -08:00
lispintro Fix copyright years by hand 2016-01-01 01:38:07 -08:00
lispref Make 'random' seeds cryptographically secure if possible 2016-01-15 11:47:55 +02:00
man Unhide the --no-line-directive option to 'etags' 2016-01-15 10:54:03 +02:00
misc Merge from gnulib 2016-01-12 13:04:34 -08:00