summaryrefslogtreecommitdiff
path: root/src/tweetnacl.c
diff options
context:
space:
mode:
authorBen Fuhrmannek2019-06-19 11:04:17 +0200
committerBen Fuhrmannek2019-06-19 11:04:17 +0200
commit3ab467100883adedab71a28e1699799e45ab0b2d (patch)
tree87ca7d7d462f138982ae578b3031c0e2425f68dd /src/tweetnacl.c
parentdb20c8ddf4d5c068e20bbce1f6d283c9eb06119a (diff)
fix snufflepagus_globals linking issues and one mac compatibility issue
Diffstat (limited to 'src/tweetnacl.c')
-rw-r--r--src/tweetnacl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/tweetnacl.c b/src/tweetnacl.c
index ad5dae5..9f66546 100644
--- a/src/tweetnacl.c
+++ b/src/tweetnacl.c
@@ -3,8 +3,6 @@ we're using the one from PHP.*/
3#include "php_snuffleupagus.h" 3#include "php_snuffleupagus.h"
4#include "ext/standard/php_random.h" 4#include "ext/standard/php_random.h"
5 5
6ZEND_DECLARE_MODULE_GLOBALS(snuffleupagus)
7
8void randombytes(unsigned char *x, unsigned long long xlen) { 6void randombytes(unsigned char *x, unsigned long long xlen) {
9 assert(SIZE_MAX >= ULLONG_MAX); // max(size_t) > max(ull) ? 7 assert(SIZE_MAX >= ULLONG_MAX); // max(size_t) > max(ull) ?
10 php_random_bytes(x, xlen, 1); 8 php_random_bytes(x, xlen, 1);