Exposed the random sources, so that users can customize them according to their needs. The rand.Reader is used by default if the user does not specify a random source while creating the local party. At keygen the random sources are separated between "partial key random source" and regular random source, aiming to provide a deterministic random source when it's the case. Custom random sources are required when the app utilizes multiple entropy sources, frequently unsuitable to be set at the global rand.Reader.
Exposed the random sources, so that users can customize them according to their needs. The
rand.Reader
is used by default if the user does not specify a random source while creating the local party. Atkeygen
the random sources are separated between "partial key random source" and regular random source, aiming to provide a deterministic random source when it's the case. Custom random sources are required when the app utilizes multiple entropy sources, frequently unsuitable to be set at the globalrand.Reader
.In order to set random sources, do: