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
30
extern
"C"
{
31
#endif
32
45
int
cwist_port_entropy
(
void
*buf,
size_t
len);
46
55
uint64_t
cwist_port_monotonic_ns
(
void
);
56
57
#ifdef __cplusplus
58
}
59
#endif
60
61
#endif
/* __CWIST_SYS_PORT_H__ */
cwist_port_entropy
int cwist_port_entropy(void *buf, size_t len)
Fill a buffer with cryptographically secure random bytes.
cwist_port_monotonic_ns
uint64_t cwist_port_monotonic_ns(void)
Monotonic time since an arbitrary epoch (usually boot).
include
cwist
sys
port.h
Generated by
1.9.8