SecureRandom Class Reference

#include <lib_secure_random.h>

Static Public Member Functions

static SecureRandomProvider GetDefaultProvider ()
 
static Bool GetRandomNumber (SecureRandomProvider provider, void *buffer, Int size)
 

Member Function Documentation

§ GetDefaultProvider()

static SecureRandomProvider GetDefaultProvider ( )
static

Gets the default secure random provider.

Returns
The default secure random provider. Cinema 4D owns the pointed SecureRandomProvider.

§ GetRandomNumber()

static Bool GetRandomNumber ( SecureRandomProvider  provider,
void *  buffer,
Int  size 
)
static

Gets a secure random number.

Parameters
[in]providerThe secure random provider. The caller owns the pointed SecureRandomProvider.
[in]bufferA pointer to a buffer that is to be filled. The caller owns the pointed buffer.
[in]sizeThe size of the buffer.
Returns
true if successful, otherwise false.