cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
port.h
Go to the documentation of this file.
1
23#ifndef __CWIST_SYS_PORT_H__
24#define __CWIST_SYS_PORT_H__
25
26#include <stddef.h>
27#include <stdint.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
45int cwist_port_entropy(void *buf, size_t len);
46
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* __CWIST_SYS_PORT_H__ */
int cwist_port_entropy(void *buf, size_t len)
Fill a buffer with cryptographically secure random bytes.
uint64_t cwist_port_monotonic_ns(void)
Monotonic time since an arbitrary epoch (usually boot).