chore(go): add comments [skip ci]

This commit is contained in:
leo 2023-01-13 22:01:44 +01:00
parent 3f77c573a6
commit 21b4888277
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

View File

@ -246,6 +246,7 @@ funcStats := &stats.FuncStats{BenchName: benchFunc}
funcStats.BenchResults = make([]stats.BenchRound, minIters)
// create and seed a source of preudo-randomness
// rand.Seed(uint64(time.Now().UnixNano()))
src := rand.NewSource(uint64(rand.Int63()))
// src := rand.NewSource(uint64(time.Now().UnixNano()))
@ -291,7 +292,7 @@ funcStats.BenchResults[iter].Iteration = iter
bestVals,
)
// first or any other iteration.
// first or any of the subsequent iterations.
switch i {
case 0:
bestResult = r