On 02/07/2017 08:03 PM, Denis Kenzior wrote:
On 02/07/2017 12:41 PM, Daniel Wagner wrote:
> Hi Slava,
> On 02/07/2017 10:16 AM, Slava Monich wrote:
>> I'm a bit confused. I read that web page again and again - it claims
>> that it's /dev/urandom which should be used because it never blocks and
>> it's /dev/random which DOES block. But your comments imply the opposite
>> - that /dev/urandom blocks and /dev/random doesn't.
> Me too. I wasn't really awake as it seems. You are absolutely right, the
> code is fine. Documentation was missing...
Or better yet, do as ell does and use getrandom().
Good idea. Will give it a shot.