unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* urandom number in Emacs
@ 2021-11-06 16:35 Emanuel Berg via Emacs development discussions.
  2021-11-07  0:13 ` Emanuel Berg via Emacs development discussions.
  0 siblings, 1 reply; 8+ messages in thread
From: Emanuel Berg via Emacs development discussions. @ 2021-11-06 16:35 UTC (permalink / raw)
  To: emacs-devel; +Cc: help-gnu-emacs

This is a dynamic module with a function that reads from
/dev/urandom ... so more random numbers with `random-urandom'
than with `random' (since Lisp cannot read from /dev/urandom
because it's a non-regular file - IIUC?) - so instead this
uses the same C as in pwgen(1) to do it, pretty simple I
guess :P

So now one can do (random-urandom) ... like any other
Lisp function and be on everyone else's level. Only cooler B)

See a very long discussion on gmane.emacs.help ...

Anyway, one C file, one C header file, and one Makefile here:

  https://dataswamp.org/~incal/emacs-init/random-urandom/

Just do 'make run'.

Keep it real time ...

-- 
underground experts united
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-11-07 19:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-06 16:35 urandom number in Emacs Emanuel Berg via Emacs development discussions.
2021-11-07  0:13 ` Emanuel Berg via Emacs development discussions.
2021-11-07  8:22   ` Omar Polo
2021-11-07  8:49     ` Emanuel Berg via Emacs development discussions.
2021-11-07  8:53       ` Omar Polo
2021-11-07  9:28         ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-11-07  8:58       ` Emanuel Berg via Emacs development discussions.
2021-11-07 19:47         ` Emanuel Berg via Emacs development discussions.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).