[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Noob dumb question (extending emacs)

From: Michael Heerdegen
Subject: Re: Noob dumb question (extending emacs)
Date: Sun, 24 Oct 2021 10:28:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Jean Louis <> writes:

> How I see it, it is very easy to set random seed by providing some
> automatically generated, random string to `random', such as those from
> the system's /proc directory.

Then you just consult a second source of entropy.  Which is more or less
the conclusion: don't rely on the entropy of Emacs' `random' function.

If that other source is a reliable source of more entropy, you don't
need Emacs' `random' at all.  If it is not, you have gained nothing.

And there is another problem which would make things much worse: when
Emacs `random' number generator operates with 48 bit numbers (which
seems to be the case, but I didn't check the sources), each algorithm
calling `random' can only generate passwords with an entropy of
maximally 48 bit, no matter what the entropy of the seed is.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]