Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestPCG (0.07 sec)

  1. src/math/rand/v2/pcg_test.go

    		t.Fatalf("after round trip, q = %#x, but p = %#x", q, p)
    	}
    
    	qu := q.Uint64()
    	pu := p.Uint64()
    	if qu != pu {
    		t.Errorf("after round trip, q.Uint64() = %#x, but p.Uint64() = %#x", qu, pu)
    	}
    }
    
    func TestPCG(t *testing.T) {
    	p := NewPCG(1, 2)
    	want := []uint64{
    		0xc4f5a58656eef510,
    		0x9dcec3ad077dec6c,
    		0xc8d04605312f8088,
    		0xcbedc0dcb63ac19a,
    		0x3bf98798cae97950,
    		0xa8c6d7f8d485abc,
    		0x7ffa3780429cd279,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 30 17:09:23 UTC 2023
    - 1.6K bytes
    - Viewed (0)
Back to top