MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / TestRandomConsistency

Function TestRandomConsistency

crypto/random_test.go:13–23  ·  view source on GitHub ↗

the purpose of this test is primarily to ensure that the randomness generation won't error.

(t *testing.T)

Source from the content-addressed store, hash-verified

11// the purpose of this test is primarily to ensure that the randomness
12// generation won't error.
13func TestRandomConsistency(t *testing.T) {
14 x1 := crypto.CRandBytes(256)
15 x2 := crypto.CRandBytes(256)
16 x3 := crypto.CRandBytes(256)
17 x4 := crypto.CRandBytes(256)
18 x5 := crypto.CRandBytes(256)
19 require.NotEqual(t, x1, x2)
20 require.NotEqual(t, x3, x4)
21 require.NotEqual(t, x4, x5)
22 require.NotEqual(t, x1, x5)
23}

Callers

nothing calls this directly

Calls 1

CRandBytesFunction · 0.92

Tested by

no test coverage detected