diff options
| author | bef | 2019-06-20 12:40:07 +0200 |
|---|---|---|
| committer | jvoisin | 2019-06-20 10:40:07 +0000 |
| commit | 1b52614c06b60ced6caecd8dcaa0911ed3aa72e2 (patch) | |
| tree | f9090e36de2a1788ae07da04e859ec3666600827 /src/tweetnacl.c | |
| parent | db20c8ddf4d5c068e20bbce1f6d283c9eb06119a (diff) | |
Fix snufflepagus_globals linking issues and one mac compatibility issue
Diffstat (limited to 'src/tweetnacl.c')
| -rw-r--r-- | src/tweetnacl.c | 2 |
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 | ||
| 6 | ZEND_DECLARE_MODULE_GLOBALS(snuffleupagus) | ||
| 7 | |||
| 8 | void randombytes(unsigned char *x, unsigned long long xlen) { | 6 | void 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); |
