Skip to content

Commit

Permalink
comment on a func
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Dec 23, 2024
1 parent aa7b746 commit 0f3e26d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qpp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0f3e26d

Please sign in to comment.