emacs-devel
[Top][All Lists]
Advanced

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

Re: Should Emacs provide a uuid function?


From: Stefan Monnier
Subject: Re: Should Emacs provide a uuid function?
Date: Mon, 09 May 2011 12:51:07 -0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> I'm not sure we should introduce a separate function, though.  It makes
> more sense to improve the existing `random' primitive, making it return
> a random number (via /dev/random or /dev/urandom or GnuTLS) rather than
> a pseudo-random number when possible.

`random' is supposed to be a PRNG, not an RNG.
I don't see any reason why we should make it significantly better than
libc's own PRNG (i.e. any bug report on a weakness of our `random'
should be forwarded to the corresponding libc's maintainers).

OTOH we should provide a way to seed the PRNG with an RN as well as to
re-seed it with the same seed.


        Stefan



reply via email to

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