Home
last modified time | relevance | path

Searched refs:getentropy (Results 1 - 23 of 23) sorted by relevance

/third_party/musl/libc-test/src/functionalext/supplement/misc/misc_gtest/
H A Dmisc_getentropy_test.cpp16 * @tc.desc: This test verifies that when calling the getentropy function, the correct buffer and size parameters are
23 int ret = getentropy(buffer, sizeof(buffer)); in HWTEST_F()
29 * @tc.desc: The testing viewpoint of this code is to verify whether the getentropy function can correctly return an
36 int ret = getentropy(nullptr, 1); in HWTEST_F()
43 * @tc.desc: The testing viewpoint of this code is to verify whether the getentropy function can correctly return an
51 int ret = getentropy(buffer, sizeof(buffer)); in HWTEST_F()
/third_party/musl/libc-test/src/functionalext/supplement/misc/
H A Dgetentropy.c27 int result = getentropy(buffer, 256); in getentropy_0100()
39 int result = getentropy(NULL, 1); in getentropy_0200()
/third_party/node/test/wasi/c/
H A Dgetentropy.c6 int r = getentropy(buf, 256); in main()
/third_party/musl/src/misc/
H A Dgetentropy.c7 int getentropy(void *buffer, size_t len) in getentropy() function
/third_party/node/deps/openssl/openssl/providers/implementations/rands/seeding/
H A Drand_unix.c347 * Do runtime detection to find getentropy(). in syscall_random()
356 * Note: Sometimes getentropy() can be provided but not implemented in syscall_random()
361 extern int getentropy(void *buffer, size_t length) __attribute__((weak)); in syscall_random()
363 if (getentropy != NULL) { in syscall_random()
364 if (getentropy(buf, buflen) == 0) in syscall_random()
386 p_getentropy.p = DSO_global_lookup("getentropy"); in syscall_random()
452 * readable. However, such kernels support the getentropy(2) in wait_random_seeded()
/third_party/openssl/providers/implementations/rands/seeding/
H A Drand_unix.c347 * Do runtime detection to find getentropy(). in syscall_random()
356 * Note: Sometimes getentropy() can be provided but not implemented in syscall_random()
361 extern int getentropy(void *buffer, size_t length) __attribute__((weak)); in syscall_random()
363 if (getentropy != NULL) { in syscall_random()
364 if (getentropy(buf, buflen) == 0) in syscall_random()
386 p_getentropy.p = DSO_global_lookup("getentropy"); in syscall_random()
452 * readable. However, such kernels support the getentropy(2) in wait_random_seeded()
/third_party/python/Python/
H A Dbootstrap_hash.c185 /* Fill buffer with size pseudo-random bytes generated by getentropy():
188 - Return 0 if getentropy() syscall is not available (failed with ENOSYS or
191 if getentropy() failed with EINTR, raise is non-zero and the Python signal
192 handler raised an exception, or if getentropy() failed with a different
195 getentropy() is retried if it failed with EINTR: interrupted by a signal. */
209 /* Is getentropy() supported by the running kernel? Set to 0 if in py_getentropy()
210 getentropy() failed with ENOSYS or EPERM. */ in py_getentropy()
218 /* getentropy() is limited to returning up to 256 bytes. Call it in py_getentropy()
225 res = getentropy(buffer, len); in py_getentropy()
229 res = getentropy(buffe in py_getentropy()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
H A Dseed_material.cc56 // glibc >= 2.25 has getentropy()
62 // Emscripten has getentropy, but it resides in a different header.
139 // On *nix, use getentropy() if supported. Note that libc may support
140 // getentropy(), but the kernel may not, in which case this function will return
146 // getentropy() has a maximum permitted length of 256.
148 int result = getentropy(buffer, to_read);
153 // MemorySanitizer can't see through getentropy().
196 // Libc may support getentropy, but the kernel may not, so we still have
/third_party/FreeBSD/lib/libc/gen/
H A Darc4random.c142 if (getentropy(rnd, sizeof rnd) == -1) in _rs_stir()
/third_party/musl/porting/liteos_a/user/include/
H A Dunistd.h202 int getentropy(void *, size_t);
/third_party/musl/porting/uniproton/kernel/include/
H A Dunistd.h177 int getentropy(void *, size_t);
/third_party/musl/porting/linux/user/include/
H A Dunistd.h204 int getentropy(void *, size_t);
/third_party/musl/porting/liteos_m/user/include/
H A Dunistd.h202 int getentropy(void *, size_t);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dunistd.h177 int getentropy(void *, size_t);
/third_party/musl/porting/liteos_a/kernel/include/
H A Dunistd.h182 int getentropy(void *, size_t);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dunistd.h177 int getentropy(void *, size_t);
/third_party/musl/include/
H A Dunistd.h241 int getentropy(void *, size_t);
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/freebsd13/
H A Dmod.rs507 pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; in getentropy() functions
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/freebsd14/
H A Dmod.rs507 pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; in getentropy() functions
/third_party/rust/crates/libc/src/
H A Dwasi.rs717 pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; in getentropy() functions
/third_party/rust/crates/libc/src/unix/linux_like/linux/gnu/
H A Dmod.rs1199 pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; in getentropy() functions
/third_party/rust/crates/libc/src/unix/bsd/netbsdlike/openbsd/
H A Dmod.rs1825 pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; in getentropy() functions
/third_party/rust/crates/libc/src/unix/solarish/
H A Dmod.rs2717 pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; in getentropy() functions

Completed in 33 milliseconds