Name the version in every seed promise, and say to regenerate seeded fixtures when it changes

This commit is contained in:
2026-10-04 17:11:27 +02:00
committed by Lillem4n
parent 0bedcd47e2
commit 6eb9880a3f
4 changed files with 12 additions and 9 deletions
+2 -2
View File
@@ -57,8 +57,8 @@ type config struct {
// Option configures a [Generator].
type Option func(*config)
// WithSeed makes output reproducible: two generators with the same seed and data
// emit identical sequences.
// WithSeed makes output reproducible: two generators with the same seed, version and
// data emit identical sequences.
func WithSeed(seed uint64) Option {
return func(c *config) { c.seed, c.seeded = seed, true }
}