- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for RAND_bytes (0.07 sec)
-
src/crypto/internal/boring/rand.go
import "unsafe" type randReader int func (randReader) Read(b []byte) (int, error) { // Note: RAND_bytes should never fail; the return value exists only for historical reasons. // We check it even so. if len(b) > 0 && C._goboringcrypto_RAND_bytes((*C.uint8_t)(unsafe.Pointer(&b[0])), C.size_t(len(b))) == 0 { return 0, fail("RAND_bytes") } return len(b), nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 17:51:31 UTC 2023 - 696 bytes - Viewed (0)