[Top][All Lists]

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

Re: New function: secure-random-bytes

From: Paul Eggert
Subject: Re: New function: secure-random-bytes
Date: Thu, 16 May 2019 10:34:11 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

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.

reply via email to

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