HomeSort by relevance Sort by last modified time
    Searched refs:getentropy (Results 1 - 19 of 19) sorted by null

  /bionic/tests/
sys_random_test.cpp 37 TEST(sys_random, getentropy) {
42 ASSERT_EQ(0, getentropy(buf1, sizeof(buf1)));
43 ASSERT_EQ(0, getentropy(buf2, sizeof(buf2)));
53 ASSERT_EQ(-1, getentropy(nullptr, 1));
66 ASSERT_EQ(-1, getentropy(buf, sizeof(buf)));
  /bionic/libc/include/sys/
random.h 41 int getentropy(void* __buffer, size_t __buffer_size) __wur __INTRODUCED_IN(28);
  /prebuilts/go/darwin-x86/src/internal/syscall/unix/
getentropy_openbsd.go 12 // getentropy(2)'s syscall number, from /usr/src/sys/kern/syscalls.master
15 // GetEntropy calls the OpenBSD getentropy system call.
16 func GetEntropy(p []byte) error {
  /prebuilts/go/linux-x86/src/internal/syscall/unix/
getentropy_openbsd.go 12 // getentropy(2)'s syscall number, from /usr/src/sys/kern/syscalls.master
15 // GetEntropy calls the OpenBSD getentropy system call.
16 func GetEntropy(p []byte) error {
  /bionic/libc/bionic/
getentropy.cpp 54 int getentropy(void* buffer, size_t buffer_size) { function
  /prebuilts/go/darwin-x86/src/crypto/rand/
rand_openbsd.go 16 // getentropy(2) returns a maximum of 256 bytes per call
22 err := unix.GetEntropy(p[i:end])
rand.go 15 // On OpenBSD, Reader uses getentropy(2).
  /prebuilts/go/linux-x86/src/crypto/rand/
rand_openbsd.go 16 // getentropy(2) returns a maximum of 256 bytes per call
22 err := unix.GetEntropy(p[i:end])
rand.go 15 // On OpenBSD, Reader uses getentropy(2).
  /bionic/libc/upstream-openbsd/android/include/
openbsd-compat.h 27 //#include <sys/random.h> // For getentropy.
28 int getentropy(void*, size_t);
  /external/libcxx/src/
random.cpp 57 int err = getentropy(&r, n);
59 __throw_system_error(errno, "random_device getentropy failed");
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Python/
random.c 109 /* Fill buffer with size pseudo-random bytes generated by getentropy().
122 res = getentropy(buffer, len);
131 res = getentropy(buffer, len);
133 Py_FatalError("getentropy() failed");
  /external/python/cpython2/Python/
random.c 99 /* Issue #25003: Don't use getentropy() on Solaris (available since
104 /* Fill buffer with size pseudo-random bytes generated by getentropy().
117 res = getentropy(buffer, len);
126 res = getentropy(buffer, len);
128 Py_FatalError("getentropy() failed");
  /external/python/cpython3/Python/
random.c 192 /* Fill buffer with size pseudo-random bytes generated by getentropy():
195 - Return 0 if getentropy() syscall is not available (failed with ENOSYS or
198 if getentropy() failed with EINTR, raise is non-zero and the Python signal
199 handler raised an exception, or if getentropy() failed with a different
202 getentropy() is retried if it failed with EINTR: interrupted by a signal. */
206 /* Is getentropy() supported by the running kernel? Set to 0 if
207 getentropy() failed with ENOSYS or EPERM. */
215 /* getentropy() is limited to returning up to 256 bytes. Call it
222 res = getentropy(buffer, len);
226 res = getentropy(buffer, len)
    [all...]
  /bionic/libc/upstream-openbsd/lib/libc/crypt/
arc4random.c 90 if (getentropy(rnd, sizeof rnd) == -1)
  /external/valgrind/coregrind/m_syswrap/
priv_syswrap-darwin.h 610 DECL_TEMPLATE(darwin, getentropy); // 500
syswrap-darwin.c     [all...]
  /external/python/cpython2/
configure     [all...]
  /external/python/cpython3/
configure     [all...]

Completed in 803 milliseconds