freebsd-skq/sys/crypto/libsodium/randombytes.c
Conrad Meyer f36e41e20b Bring in compatibility glue for libsodium
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.
2018-08-17 00:27:56 +00:00

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);
}