Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for OneByteReader (0.1 sec)

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

    		t.Errorf("transcript incorrect: got %x, want %x", got, chacha8hash)
    	}
    
    	p.Seed(chacha8seed)
    	h.Reset()
    
    	buf = make([]byte, chacha8outlen)
    	if _, err := io.ReadFull(iotest.OneByteReader(p), buf); err != nil {
    		t.Errorf("one byte reads: %v", err)
    	}
    	h.Write(buf)
    	if got := h.Sum(nil); !bytes.Equal(got, chacha8hash) {
    		t.Errorf("transcript incorrect (one byte reads): got %x, want %x", got, chacha8hash)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:09:08 UTC 2024
    - 55K bytes
    - Viewed (0)
Back to top