Ordo  0.3.4
Symmetric Cryptography Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
os_random.h
Go to the documentation of this file.
1 /*===-- misc/os_random.h -------------------------------*- PUBLIC -*- H -*-===*/
12 /*===----------------------------------------------------------------------===*/
13 
14 #ifndef ORDO_OS_RANDOM_H
15 #define ORDO_OS_RANDOM_H
16 
18 #include "ordo/common/interface.h"
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 /*===----------------------------------------------------------------------===*/
26 
27 #define os_random ordo_os_random
28 #define os_secure_random ordo_os_secure_random
29 
30 /*===----------------------------------------------------------------------===*/
31 
45 ORDO_PUBLIC
46 int os_random(void *out, size_t len);
47 
70 ORDO_PUBLIC
71 int os_secure_random(void *out, size_t len);
72 
73 /*===----------------------------------------------------------------------===*/
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif
ORDO_PUBLIC int os_random(void *out, size_t len)
Definition: os_random.c:13
ORDO_PUBLIC int os_secure_random(void *out, size_t len)
Definition: os_random.c:36