Lines Matching defs:bytes
91 * prandom_bytes_state - get the requested number of pseudo-random bytes
94 * @buf: where to copy the pseudo-random bytes to
95 * @bytes: the requested number of bytes
100 void prandom_bytes_state(struct rnd_state *state, void *buf, size_t bytes)
104 while (bytes >= sizeof(u32)) {
107 bytes -= sizeof(u32);
110 if (bytes > 0) {
114 bytes--;
116 } while (bytes > 0);
122 * prandom_bytes - get the requested number of pseudo-random bytes
123 * @buf: where to copy the pseudo-random bytes to
124 * @bytes: the requested number of bytes
126 void prandom_bytes(void *buf, size_t bytes)
130 prandom_bytes_state(state, buf, bytes);
252 /* Asking for random bytes might result in bytes getting
257 * already waiting for bytes when the nonblocking pool