MCPcopy Create free account
hub / github.com/buger/jsonparser / oracleNewRNG

Function oracleNewRNG

reference_oracle_test.go:119–121  ·  view source on GitHub ↗

oracleNewRNG returns a seeded RNG. Distinct name from property_test.go's newRNG so the two files can evolve independently without collision.

(seed int64)

Source from the content-addressed store, hash-verified

117// oracleNewRNG returns a seeded RNG. Distinct name from property_test.go's
118// newRNG so the two files can evolve independently without collision.
119func oracleNewRNG(seed int64) *mathrand.Rand {
120 return mathrand.New(mathrand.NewSource(seed))
121}
122
123// ---------------------------------------------------------------------------
124// Independent random JSON value generators (richer than property_test.go's)

Callers 5

TestOracleGetRoundTripFunction · 0.85
TestOracleSetRoundTripFunction · 0.85
TestOracleParseIntFunction · 0.85
TestOracleParseFloatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected