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

Function newRNG

property_test.go:37–39  ·  view source on GitHub ↗
(seed int64)

Source from the content-addressed store, hash-verified

35const jsonSeed int64 = 0xC0FFEE
36
37func newRNG(seed int64) *mathrand.Rand {
38 return mathrand.New(mathrand.NewSource(seed))
39}
40
41// randomJSONValue builds a random nested Go value suitable for
42// encoding/json.Marshal. The shape (depth, breadth, alternatives) is chosen

Calls

no outgoing calls

Tested by

no test coverage detected