[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Should Emacs provide a uuid function?
From: |
Ted Zlatanov |
Subject: |
Re: Should Emacs provide a uuid function? |
Date: |
Mon, 09 May 2011 05:51:50 -0500 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) |
On Mon, 09 May 2011 10:23:06 +0300 Eli Zaretskii <address@hidden> wrote:
EZ> Feh. Using platform-dependent interfaces in Lisp is not the Emacs
EZ> way, in my book. How about a primitive which would read from
EZ> /dev/random or /dev/urandom if they are available, or use other
EZ> methods if they are not?
...
EZ> This all will be avoided if we instead provide a primitive that will
EZ> both hide system-dependent stuff and avoid the need to teach
EZ> insert-file-contents about this special device.
GnuTLS has facilities for this, using /dev/*random and the Yarrow
algorithm from libnettle. Look at lib/nettle/rnd.c
http://git.savannah.gnu.org/gitweb/?p=gnutls.git;a=tree;f=lib/nettle;hb=HEAD
for the `do_trivia_source' and `do_device_source' functions.
Since GnuTLS is enabled by default in Emacs 24 maybe we can rely on that
functionality instead of writing it anew?
Ted
- Re: Should Emacs provide a uuid function?, Stephen J. Turnbull, 2011/05/01
- Re: Should Emacs provide a uuid function?, Leo, 2011/05/09
- Re: Should Emacs provide a uuid function?, Eli Zaretskii, 2011/05/09
- Re: Should Emacs provide a uuid function?, Stefan Monnier, 2011/05/09
- Re: Should Emacs provide a uuid function?, Eli Zaretskii, 2011/05/09
- Re: Should Emacs provide a uuid function?, Stefan Monnier, 2011/05/09
- Re: Should Emacs provide a uuid function?, Eli Zaretskii, 2011/05/09
- Re: Should Emacs provide a uuid function?, Stefan Monnier, 2011/05/09
- Re: Should Emacs provide a uuid function?, Eli Zaretskii, 2011/05/09
- Re: Should Emacs provide a uuid function?, Chong Yidong, 2011/05/09
- Re: Should Emacs provide a uuid function?, Eli Zaretskii, 2011/05/09