Searched refs:getrandom (Results 1 - 6 of 6) sorted by relevance

/openbsd-current/games/arithmetic/
H A Darithmetic.c73 int getrandom(uint32_t, int, int);
180 right = getrandom(rangemax + 1, op, 1);
185 left = getrandom(rangemax + 1, op, 0);
189 result = getrandom(rangemax + 1, op, 0);
193 left = getrandom(rangemax + 1, op, 0);
197 right = getrandom(rangemax, op, 1) + 1;
198 result = getrandom(rangemax + 1, op, 0);
304 getrandom(uint32_t maxval, int op, int operand) function
/openbsd-current/usr.sbin/nsd/
H A Dutil.c970 if(getrandom(&r, sizeof(r), 0) == -1) {
971 log_msg(LOG_ERR, "getrandom failed: %s", strerror(errno));
988 if(getrandom(&r, sizeof(r), 0) == -1) {
989 log_msg(LOG_ERR, "getrandom failed: %s", strerror(errno));
H A Dserver.c1495 if(getrandom(&v, sizeof(v), 0) == -1) {
1496 log_msg(LOG_ERR, "getrandom failed: %s", strerror(errno));
/openbsd-current/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux.cpp2404 // Up to 256 bytes, getrandom will not be interrupted.
2405 uptr res = internal_syscall(SYSCALL(getrandom), buffer, length,
H A Dsanitizer_common_interceptors.inc10075 INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
10077 COMMON_INTERCEPTOR_ENTER(ctx, getrandom, buf, buflen, flags);
10078 SSIZE_T n = REAL(getrandom)(buf, buflen, flags);
10084 #define INIT_GETRANDOM COMMON_INTERCEPT_FUNCTION(getrandom)
/openbsd-current/lib/libexpat/lib/
H A Dxmlparse.c124 # include <sys/random.h> /* getrandom */
151 * Linux >=3.17 + glibc >=2.25 (getrandom): HAVE_GETRANDOM, \
804 getrandom(currentTarget, bytesToWrite, getrandomFlags);
968 return ENTROPY_DEBUG("getrandom", entropy);

Completed in 386 milliseconds