Lines Matching defs:bytes
66 * prandom_bytes_state - get the requested number of pseudo-random bytes
69 * @buf: where to copy the pseudo-random bytes to
70 * @bytes: the requested number of bytes
75 void prandom_bytes_state(struct rnd_state *state, void *buf, size_t bytes)
79 while (bytes >= sizeof(u32)) {
82 bytes -= sizeof(u32);
85 if (bytes > 0) {
89 bytes--;
91 } while (bytes > 0);
396 * prandom_bytes - get the requested number of pseudo-random bytes
397 * @buf: where to copy the pseudo-random bytes to
398 * @bytes: the requested number of bytes
400 void prandom_bytes(void *buf, size_t bytes)
405 while (bytes >= sizeof(u32)) {
408 bytes -= sizeof(u32);
411 if (bytes > 0) {
417 } while (--bytes > 0);