aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <[email protected]>2017-06-07 22:44:54 -0400
committerTheodore Ts'o <[email protected]>2017-06-19 22:06:28 -0400
commitae5b806a3d3c23d9d3b57aecbe687a0bd82ab086 (patch)
treeb5d8eb3b6f2d986cb3733ad19561a63961de0f93 /lib/mpi/mpi-bit.c
parent6787ab81b29115b6d2e7d17fe8a8017da66197d6 (diff)
ceph: ensure RNG is seeded before using
Ceph uses the RNG for various nonce generations, and it shouldn't accept using bad randomness. So, we wait for the RNG to be properly seeded. We do this by calling wait_for_random_bytes() in a function that is certainly called in process context, early on, so that all subsequent calls to get_random_bytes are necessarily acceptable. Signed-off-by: Jason A. Donenfeld <[email protected]> Cc: Ilya Dryomov <[email protected]> Cc: "Yan, Zheng" <[email protected]> Cc: Sage Weil <[email protected]> Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions