zoslib
z/OS C/C++ Library
Loading...
Searching...
No Matches
Functions
zos-getentropy.h File Reference
#include "zos-macros.h"
#include <sys/types.h>

Go to the source code of this file.

Functions

__Z_EXPORT int __getentropy (void *buffer, size_t length)
 

Function Documentation

◆ __getentropy()

__Z_EXPORT 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.