random: split primary/secondary crng init paths
Currently crng_initialize() is used for both the primary CRNG and
secondary CRNGs. While we wish to share common logic, we need to do a
number of additional things for the primary CRNG, and this would be
easier to deal with were these handled in separate functions.
This patch splits crng_initialize() into crng_initialize_primary() and
crng_initialize_secondary(), with common logic factored out into a
There should be no functional change as a result of this patch.
Signed-off-by: Mark Rutland <firstname.lastname@example.org>
Cc: Mark Brown <email@example.com>
Cc: Theodore Ts'o <firstname.lastname@example.org>
Signed-off-by: Theodore Ts'o <email@example.com>
1 file changed