From 0f3e26dd857fa3e6e24b5d1e5c363228fdfd319a Mon Sep 17 00:00:00 2001 From: xtaci Date: Mon, 23 Dec 2024 17:56:26 +0800 Subject: [PATCH] comment on a func --- qpp.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qpp.go b/qpp.go index eedbcf6..0f379f9 100644 --- a/qpp.go +++ b/qpp.go @@ -135,7 +135,8 @@ func CreatePRNG(seed []byte) *Rand { return rd } -// FastPRNG creates a deterministic pseudo-random number generator based on the provided seed +// FastPRNG creates a deterministic pseudo-random number generator based on the provided seed, but with a faster initialization, +// it's suitable for the cases where the seed have sufficient randomness. func FastPRNG(seed []byte) *Rand { sha := sha256.New() sum := sha.Sum(seed)