- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for fillBatched (1.59 sec)
-
src/crypto/rand/rand_batched_test.go
package rand import ( "bytes" "errors" prand "math/rand" "testing" ) func TestBatched(t *testing.T) { fillBatched := batched(func(p []byte) error { for i := range p { p[i] = byte(i) } return nil }, 5) p := make([]byte, 13) if err := fillBatched(p); err != nil { t.Fatalf("batched function returned error: %s", err) } expected := []byte{0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 26 16:24:57 UTC 2022 - 1.8K bytes - Viewed (0)