Functions

randstr.h File Reference

Simple functions for gathering random data. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int eurephia_randstring (eurephiaCTX *ctx, void *rndstr, size_t len)

Detailed Description

Simple functions for gathering random data.

Author:
David Sommerseth <dazo@users.sourceforge.net>
Date:
2009-01-10

Definition in file randstr.h.


Function Documentation

int eurephia_randstring ( eurephiaCTX ctx,
void *  rndstr,
size_t  len 
)

Generate some random data and return a string. This function makes use of OpenSSL's RAND_pseudo_bytes() function.

Parameters:
ctx eurephiaCTX
rndstr Return buffer of the random data
len Size of the return buffer
Returns:
Returns 1 on success, otherwise 0.

< Alias for LOG_FATAL

< Operation failed and cannot continue. Log level always < 2

< Alias for LOG_FATAL

< Operation failed and cannot continue. Log level always < 2

Definition at line 54 of file randstr.c.

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines