- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for Getrandom (0.56 sec)
-
src/internal/syscall/unix/getrandom.go
package unix import ( "sync/atomic" "syscall" "unsafe" ) var getrandomUnsupported atomic.Bool // GetRandomFlag is a flag supported by the getrandom system call. type GetRandomFlag uintptr // GetRandom calls the getrandom system call. func GetRandom(p []byte, flags GetRandomFlag) (n int, err error) { if len(p) == 0 { return 0, nil } if getrandomUnsupported.Load() { return 0, syscall.ENOSYS }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:54:02 UTC 2023 - 862 bytes - Viewed (0) -
src/crypto/rand/rand_getrandom.go
// reading from /dev/urandom in rand_unix.go. unix.GetRandom caches the ENOSYS // result so we only suffer the syscall overhead once in this case. // If the kernel supports the getrandom() syscall, unix.GetRandom will block // until the kernel has sufficient randomness (as we don't use GRND_NONBLOCK). // In this case, unix.GetRandom will not return an error. func getRandom(p []byte) error { n, err := unix.GetRandom(p, 0) if err != nil { return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 00:26:43 UTC 2023 - 1.4K bytes - Viewed (0) -
src/internal/syscall/unix/getrandom_solaris.go
// GRND_RANDOM means use the /dev/random pool instead of /dev/urandom. GRND_RANDOM GetRandomFlag = 0x0002 ) // GetRandom calls the getrandom system call. func GetRandom(p []byte, flags GetRandomFlag) (n int, err error) { if len(p) == 0 { return 0, nil } if getrandomUnsupported.Load() { return 0, syscall.ENOSYS } r1, _, errno := syscall6(uintptr(unsafe.Pointer(&procGetrandom)), 3,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:54:02 UTC 2023 - 1.2K bytes - Viewed (0) -
src/crypto/rand/rand_js.go
const maxGetRandomRead = 64 << 10 var batchedGetRandom func([]byte) error func init() { Reader = &reader{} batchedGetRandom = batched(getRandom, maxGetRandomRead) } var jsCrypto = js.Global().Get("crypto") var uint8Array = js.Global().Get("Uint8Array") // reader implements a pseudorandom generator // using JavaScript crypto.getRandomValues method.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 06 18:03:38 UTC 2023 - 1.1K bytes - Viewed (0) -
doc/next/7-ports.md
### OpenBSD {#openbsd} <!-- go.dev/issue/55999, CL 518629, CL 518630 --> Go 1.23 adds experimental support for OpenBSD on 64-bit RISC-V (`GOOS=openbsd`, `GOARCH=riscv64`). ### ARM64 {#arm64}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:18:52 UTC 2024 - 1.7K bytes - Viewed (0) -
src/crypto/rand/rand.go
// random number generator. package rand import "io" // Reader is a global, shared instance of a cryptographically // 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).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 20:02:21 UTC 2024 - 1.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/zsymaddr_zos_s390x.s
MOVD $·Futimesat(SB), R8 MOVD R8, ret+0(FP) RET // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT TEXT ·get_GetrandomAddr(SB), NOSPLIT|NOFRAME, $0-8 MOVD $·Getrandom(SB), R8 MOVD R8, ret+0(FP) RET // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT TEXT ·get_InotifyInitAddr(SB), NOSPLIT|NOFRAME, $0-8 MOVD $·InotifyInit(SB), R8 MOVD R8, ret+0(FP)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 16:12:58 UTC 2024 - 8.8K bytes - Viewed (0) -
src/main/java/jcifs/config/BaseConfiguration.java
public BaseConfiguration ( boolean initDefaults ) throws CIFSException { if ( initDefaults ) { this.initDefaults(); } } @Override public SecureRandom getRandom () { return this.random; } @Override public String getNetbiosHostname () { return this.netbiosHostname; } @Override
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Thu Jan 05 13:06:39 UTC 2023 - 20.4K bytes - Viewed (0) -
src/main/java/jcifs/Configuration.java
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Thu Jan 05 13:06:39 UTC 2023 - 18K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go
SYS_LWP_GETNAME = 549 // { int lwp_getname(lwpid_t tid, char *name, size_t len); } SYS_GETRANDOM = 550 // { ssize_t getrandom(void *buf, size_t len, unsigned flags); } SYS___REALPATH = 551 // { ssize_t __realpath(const char *path, char *buf, size_t len); }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 27.6K bytes - Viewed (0)