lua-arc4random

Cryptographically secure PRNG for Lua
Log | Files | Refs | README

stdlib.h (571B)


      1 /*
      2  * stdlib.h compatibility shim
      3  * Public domain
      4  */
      5 
      6 #include_next <stdlib.h>
      7 
      8 #ifndef LIBCRYPTOCOMPAT_STDLIB_H
      9 #define LIBCRYPTOCOMPAT_STDLIB_H
     10 
     11 #include <sys/stat.h>
     12 #include <sys/time.h>
     13 #include <stdint.h>
     14 
     15 #ifndef HAVE_ARC4RANDOM_BUF
     16 uint32_t arc4random(void);
     17 uint32_t arc4random_uniform(uint32_t);
     18 void arc4random_buf(void *_buf, size_t n);
     19 #endif
     20 
     21 #ifndef HAVE_REALLOCARRAY
     22 void *reallocarray(void *, size_t, size_t);
     23 #endif
     24 
     25 #ifndef HAVE_STRTONUM
     26 long long strtonum(const char *nptr, long long minval,
     27 		long long maxval, const char **errstr);
     28 #endif
     29 
     30 #endif