xref: /freebsd/sys/crypto/libsodium/randombytes.c (revision 4717628ed859513a3262ea68259d0605f39de0b3)
1 /* This file is in the public domain. */
2 
3 #include <sys/cdefs.h>
4 #include <sys/libkern.h>
5 
6 #include <sodium/randombytes.h>
7 
8 void
9 randombytes_buf(void *buf, size_t size)
10 {
11 	arc4random_buf(buf, size);
12 }
13