[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5615B0BC.7030005@plumgrid.com>
Date: Wed, 7 Oct 2015 16:54:36 -0700
From: Alexei Starovoitov <ast@...mgrid.com>
To: Daniel Borkmann <daniel@...earbox.net>, davem@...emloft.net
Cc: hannes@...essinduktion.org, netdev@...r.kernel.org
Subject: Re: [PATCH net-next v2 4/5] random32: add prandom_init_once helper
for own rngs
On 10/7/15 4:20 PM, Daniel Borkmann wrote:
> Add a prandom_init_once() facility that works on the rnd_state, so that
> users that are keeping their own state independent from prandom_u32() can
> initialize their taus113 per cpu states.
>
> The motivation here is similar to net_get_random_once(): initialize the
> state as late as possible in the hope that enough entropy has been
> collected for the seeding. prandom_init_once() makes use of the recently
> introduced prandom_seed_full_state() helper and is generic enough so that
> it could also be used on fast-paths due to the DO_ONCE().
>
> Signed-off-by: Daniel Borkmann<daniel@...earbox.net>
> Acked-by: Hannes Frederic Sowa<hannes@...essinduktion.org>
Acked-by: Alexei Starovoitov <ast@...nel.org>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists