mirror of
https://github.com/luxfi/pqclean.git
synced 2026-10-30 15:21:55 +00:00
* Skip tests if wrong AStyle version * Guarantee language of tools during tests * Run astyle
28 lines
450 B
C
28 lines
450 B
C
#ifndef PQCLEAN_RANDOMBYTES_H
|
|
#define PQCLEAN_RANDOMBYTES_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef _WIN32
|
|
/* Load size_t on windows */
|
|
#include <crtdefs.h>
|
|
#else
|
|
#include <unistd.h>
|
|
#endif /* _WIN32 */
|
|
|
|
/*
|
|
* Write `n` bytes of high quality random bytes to `buf`
|
|
*/
|
|
#define randombytes PQCLEAN_randombytes
|
|
int randombytes(uint8_t *output, size_t n);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* PQCLEAN_RANDOMBYTES_H */
|