HomeSort by: relevance | last modified time | path
    Searched defs:RANDOM_BUFSIZE (Results 1 - 2 of 2) sorted by relevancy

  /src/sys/kern/
sys_getrandom.c 56 #define RANDOM_BUFSIZE 512
72 buf = kmem_alloc(RANDOM_BUFSIZE, KM_SLEEP);
78 if (uio->uio_resid <= RANDOM_BUFSIZE &&
113 size_t n = MIN(uio->uio_resid, RANDOM_BUFSIZE);
126 CTASSERT(ENTROPY_CAPACITY <= RANDOM_BUFSIZE);
127 CTASSERT(sizeof seed <= RANDOM_BUFSIZE);
181 CTASSERT(RANDOM_BUFSIZE >= 256);
190 explicit_memset(buf, 0, RANDOM_BUFSIZE);
191 kmem_free(buf, RANDOM_BUFSIZE);
  /src/sys/dev/
random.c 97 #define RANDOM_BUFSIZE 512 /* XXX pulled from arse */
206 * bytes (actually, no shorter than RANDOM_BUFSIZE bytes, which is
272 buf = kmem_alloc(RANDOM_BUFSIZE, KM_SLEEP);
276 size_t n = MIN(uio->uio_resid, RANDOM_BUFSIZE);
297 explicit_memset(buf, 0, RANDOM_BUFSIZE);
298 kmem_free(buf, RANDOM_BUFSIZE);

Completed in 12 milliseconds