[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
urandom number in Emacs
From: |
Emanuel Berg |
Subject: |
urandom number in Emacs |
Date: |
Sat, 06 Nov 2021 17:35:25 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
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
- urandom number in Emacs,
Emanuel Berg <=