zoslib
z/OS C/C++ Library
Loading...
Searching...
No Matches
Macros | Functions
zos-getentropy.cc File Reference
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
#include <unistd.h>
#include "zos-getentropy.h"

Macros

#define _AE_BIMODAL   1
 
#define _XOPEN_SOURCE   600
 
#define _OPEN_SYS_FILE_EXT   1
 
#define _OPEN_MSGQ_EXT   1
 

Functions

int __getentropy (void *output, size_t size)
 

Macro Definition Documentation

◆ _AE_BIMODAL

#define _AE_BIMODAL   1

◆ _OPEN_MSGQ_EXT

#define _OPEN_MSGQ_EXT   1

◆ _OPEN_SYS_FILE_EXT

#define _OPEN_SYS_FILE_EXT   1

◆ _XOPEN_SOURCE

#define _XOPEN_SOURCE   600

Function Documentation

◆ __getentropy()

int __getentropy ( void *  buffer,
size_t  length 
)

Fill a buffer with random bytes

Parameters
[out]bufferto store random bytes to.
[in]numberof random bytes to generate.
Returns
On success, returns 0, or -1 on error.