f36e41e20b
The idea is untouched upstream sources live in sys/contrib/libsodium. sys/crypto/libsodium are support routines or compatibility headers to allow building unmodified upstream code. This is not yet integrated into the build system, so no functional change.
14 lines
224 B
C
14 lines
224 B
C
/* This file is in the public domain. */
|
|
|
|
#include <sys/cdefs.h>
|
|
__FBSDID("$FreeBSD$");
|
|
#include <sys/libkern.h>
|
|
|
|
#include <sodium/randombytes.h>
|
|
|
|
void
|
|
randombytes_buf(void *buf, size_t size)
|
|
{
|
|
arc4random_buf(buf, size);
|
|
}
|