Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for arc4random (0.7 sec)

  1. src/internal/syscall/unix/arc4random_darwin.go

    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
    	}
    	syscall_syscall(abi.FuncPCABI0(libc_arc4random_buf_trampoline),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 20:02:21 UTC 2024
    - 633 bytes
    - Viewed (0)
  2. src/crypto/rand/rand_darwin.go

    	//
    	// "The subsystem is re-seeded from the kernel random number subsystem on a
    	// regular basis, and also upon fork(2)." - arc4random(3)
    	//
    	// Note that despite its legacy name, it uses a secure CSPRNG (not RC4) in
    	// all supported macOS versions.
    	altGetRandom = func(b []byte) error { unix.ARC4Random(b); return nil }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 20:02:21 UTC 2024
    - 667 bytes
    - Viewed (0)
Back to top