From: Paul Eggert <eggert@cs.ucla.edu>
To: Julian Scheid <julians37@gmail.com>
Cc: Leo Liu <sdl.web@gmail.com>, emacs-devel@gnu.org
Subject: Re: New function: secure-random-bytes
Date: Thu, 16 May 2019 10:34:11 -0700 [thread overview]
Message-ID: <e43fa448-c986-ae7d-bcb3-53610d040682@cs.ucla.edu> (raw)
In-Reply-To: <CAD1CDTVe0FkjTwLwAABit1PS-rD-zKvC5W7YEEXdhSKsuT4BOw@mail.gmail.com>
On 5/15/19 5:09 AM, Julian Scheid wrote:
> I wonder, is there anything speaking against adding a simple
> implementation now and worrying about maximal performance later?
No, we could do something. What sort of API would work well for you?
Something like this?
(insert-entropy N)
Insert N bytes of high-quality random data after point, where N is an
integer and 0 <= N <= 256. Signal an error on failure.
This would be a wrapper around the glibc getentropy function. I'd write
a Gnulib substitute for platforms lacking getentropy.
next prev parent reply other threads:[~2019-05-16 17:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-24 7:50 New function: secure-random-bytes Leo
2011-06-24 9:57 ` Ted Zlatanov
2011-06-24 17:33 ` Paul Eggert
2011-06-25 7:26 ` Leo
2011-06-27 16:10 ` Ted Zlatanov
2013-03-18 10:26 ` Leo Liu
2013-03-18 16:48 ` Paul Eggert
2013-03-18 21:07 ` Romain Francoise
2019-05-15 12:09 ` Julian Scheid
2019-05-16 17:34 ` Paul Eggert [this message]
2011-06-24 13:33 ` James Cloos
2011-06-25 7:27 ` Leo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e43fa448-c986-ae7d-bcb3-53610d040682@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=emacs-devel@gnu.org \
--cc=julians37@gmail.com \
--cc=sdl.web@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.