Add API for random number generator

This commit is contained in:
Ivan Grokhotkov
2016-11-21 22:59:46 +08:00
parent 46a39b1e0f
commit cf6fc7c741
6 changed files with 119 additions and 3 deletions

View File

@@ -119,6 +119,7 @@ typedef __uint64_t uint64_t;
#endif /* _BYTE_ORDER == _LITTLE_ENDIAN */
/* Alignment-agnostic encode/decode bytestream to/from little/big endian. */
#define INLINE __inline__
static INLINE uint16_t
be16dec(const void *pp)