- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for arc4random_buf (0.43 sec)
-
src/internal/syscall/unix/arc4random_darwin.go
// license that can be found in the LICENSE file. package unix import ( "internal/abi" "unsafe" ) //go:cgo_import_dynamic libc_arc4random_buf arc4random_buf "/usr/lib/libSystem.B.dylib" func libc_arc4random_buf_trampoline() // ARC4Random calls the macOS arc4random_buf(3) function. func ARC4Random(p []byte) { // macOS 11 and 12 abort if length is 0. if len(p) == 0 { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 20:02:21 UTC 2024 - 633 bytes - Viewed (0) -
src/crypto/rand/rand_darwin.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package rand import "internal/syscall/unix" func init() { // arc4random_buf is the recommended application CSPRNG, accepts buffers of // any size, and never returns an error. // // "The subsystem is re-seeded from the kernel random number subsystem on a
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 20:02:21 UTC 2024 - 667 bytes - Viewed (0) -
src/crypto/rand/rand.go
// secure random number generator. // // - On Linux, FreeBSD, Dragonfly, and Solaris, Reader uses getrandom(2) // if available, and /dev/urandom otherwise. // - On macOS and iOS, Reader uses arc4random_buf(3). // - On OpenBSD and NetBSD, Reader uses getentropy(2). // - On other Unix-like systems, Reader reads from /dev/urandom. // - On Windows, Reader uses the ProcessPrng API.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 20:02:21 UTC 2024 - 1.5K bytes - Viewed (0)