AlterOffice
AlterOffice 2026.2 SDK C/C++ API Reference
random.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 
3 
4 #ifndef INCLUDED_RTL_RANDOM_H
5 #define INCLUDED_RTL_RANDOM_H
6 
7 #include "sal/config.h"
8 
9 #include "sal/saldllapi.h"
10 #include "sal/types.h"
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
18 typedef void* rtlRandomPool;
19 
20 
24 {
30 };
31 
35 
36 
41 
42 
47  rtlRandomPool Pool
49 
50 
58  rtlRandomPool Pool,
59  const void *Buffer,
60  sal_Size Bytes
62 
63 
71  rtlRandomPool Pool,
72  void *Buffer,
73  sal_Size Bytes
75 
76 #ifdef __cplusplus
77 }
78 #endif
79 
80 #endif // INCLUDED_RTL_RANDOM_H
81 
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define SAL_DLLPUBLIC
Definition: saldllapi.h:14
#define SAL_MAX_ENUM
Definition: types.h:185
#define SAL_THROW_EXTERN_C()
Nothrow specification for C functions.
Definition: types.h:314
__rtl_RandomError
Error Code enumeration.
Definition: random.h:24
@ rtl_Random_E_None
Definition: random.h:25
@ rtl_Random_E_Argument
Definition: random.h:26
@ rtl_Random_E_FORCE_EQUAL_SIZE
Definition: random.h:29
@ rtl_Random_E_Memory
Definition: random.h:27
@ rtl_Random_E_Unknown
Definition: random.h:28
void * rtlRandomPool
Random Pool opaque type.
Definition: random.h:18
SAL_DLLPUBLIC rtlRandomError rtl_random_getBytes(rtlRandomPool Pool, void *Buffer, sal_Size Bytes) SAL_THROW_EXTERN_C()
Retrieve bytes from a Random Pool.
SAL_DLLPUBLIC rtlRandomError rtl_random_addBytes(rtlRandomPool Pool, const void *Buffer, sal_Size Bytes) SAL_THROW_EXTERN_C()
Add bytes to a Random Pool.
enum __rtl_RandomError rtlRandomError
Error Code type.
Definition: random.h:34
SAL_DLLPUBLIC rtlRandomPool rtl_random_createPool(void) SAL_THROW_EXTERN_C()
Create a Random Pool.
SAL_DLLPUBLIC void rtl_random_destroyPool(rtlRandomPool Pool) SAL_THROW_EXTERN_C()
Destroy a Random Pool.