mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Merge pull request #502 from stqism/issue-470-fix
Fixed issue #470, crypto_test still forcing libsodium when NaCL is chosen
This commit is contained in:
commit
3707833f0b
|
@ -5,7 +5,12 @@
|
|||
#include <check.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#ifndef VANILLA_NACL
|
||||
#include <sodium.h>
|
||||
#else
|
||||
#include <crypto_box.h>
|
||||
#define crypto_box_MACBYTES (crypto_box_ZEROBYTES - crypto_box_BOXZEROBYTES)
|
||||
#endif
|
||||
|
||||
void rand_bytes(uint8_t *b, size_t blen)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user