- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 41 for Getrandom (0.52 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) -
src/internal/syscall/unix/getrandom_dragonfly.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package unix // DragonFlyBSD getrandom system call number. const getrandomTrap uintptr = 550 const ( // GRND_RANDOM is only set for portability purpose, no-op on DragonFlyBSD. GRND_RANDOM GetRandomFlag = 0x0001 // GRND_NONBLOCK means return EAGAIN rather than blocking.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 11 08:19:31 UTC 2021 - 476 bytes - Viewed (0) -
src/internal/syscall/unix/getrandom_freebsd.go
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package unix // FreeBSD getrandom system call number. const getrandomTrap uintptr = 563 const ( // GRND_NONBLOCK means return EAGAIN rather than blocking. GRND_NONBLOCK GetRandomFlag = 0x0001 // GRND_RANDOM is only set for portability purpose, no-op on FreeBSD.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 11 08:19:31 UTC 2021 - 466 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/test/java/jcifs/tests/ReadWriteTest.java
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/tests/RandomAccessFileTest.java
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 11.4K 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)