2 ms·
> CSPRNG api always includes an error you need to handle (in case the sys call fails or you run out of entropy). > Perhaps a Must/panic style API makes sense?
by loeg 3y ago
> CSPRNG api always includes an error you need to handle (in case the sys call fails or you run out of entropy).
> Perhaps a Must/panic style API makes sense?
Yes, CSPRNGs APIs should be infallible.