Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Prng ¶
type Prng struct{}
This re-exports the global random state, exposed by rand (the package)'s exported methods, in a way that can be passed to faker.NewWithSeed().
func Seed ¶
Seed allows for repeating a certain (failing) test case by exposing the value used for seeding its PRNG. Dually, it's accepting a seed value from the TEST_SEED env var. Note: this doesn't affect the map iteration order; so we're not perfectly reproducible. However, given a test failure, there's less moving parts hindering the debug process.
Click to show internal directories.
Click to hide internal directories.