lkml.org 
[lkml]   [2017]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] random: use chacha20 for get_random_int/long
On Fri, Jan 20, 2017 at 04:47:42PM +0100, Jason A. Donenfeld wrote:
>
> What do you mean? Nothing is wasted right now. The u64 function only
> gets u64s from a dedicated u64 array. The u32 function only gets u32s
> from a dedicated u32 array. There are separate batched entropy arrays
> for each function.

But there is a shared pointer, which is used both for the dedicated
u32 array and the dedicated u64 array. So when you increment the
pointer for the get_random_u32, the corresponding entry in the u64
array is wasted, no?

- Ted

\
 
 \ /
  Last update: 2017-01-21 01:16    [W:2.290 / U:0.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site