diff options
Diffstat (limited to 'src/tweetnacl.c')
| -rw-r--r-- | src/tweetnacl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tweetnacl.c b/src/tweetnacl.c index 9f66546..746cabc 100644 --- a/src/tweetnacl.c +++ b/src/tweetnacl.c | |||
| @@ -3,7 +3,7 @@ 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 | void randombytes(unsigned char *x, unsigned long long xlen) { | 6 | static void randombytes(unsigned char *x, unsigned long long xlen) { |
| 7 | assert(SIZE_MAX >= ULLONG_MAX); // max(size_t) > max(ull) ? | 7 | assert(SIZE_MAX >= ULLONG_MAX); // max(size_t) > max(ull) ? |
| 8 | php_random_bytes(x, xlen, 1); | 8 | php_random_bytes(x, xlen, 1); |
| 9 | } | 9 | } |
