Lines Matching refs:buf
31 static int uv__random(void* buf, size_t buflen) { in uv__random() argument
35 rc = uv__random_readpath("/dev/urandom", buf, buflen); in uv__random()
37 rc = uv__random_readpath("/dev/random", buf, buflen); in uv__random()
40 rc = uv__random_getentropy(buf, buflen); in uv__random()
42 rc = uv__random_devurandom(buf, buflen); in uv__random()
44 rc = uv__random_sysctl(buf, buflen); in uv__random()
46 rc = uv__random_getrandom(buf, buflen); in uv__random()
48 rc = uv__random_devurandom(buf, buflen); in uv__random()
58 rc = uv__random_sysctl(buf, buflen); in uv__random()
64 rc = uv__random_rtlgenrandom(buf, buflen); in uv__random()
66 rc = uv__random_devurandom(buf, buflen); in uv__random()
77 req->status = uv__random(req->buf, req->buflen); in uv__random_work()
90 req->cb(req, status, req->buf, req->buflen); in uv__random_done()
96 void *buf, in uv_random() argument
107 return uv__random(buf, buflen); in uv_random()
113 req->buf = buf; in uv_random()