Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL: tnlRandom.h File Reference

# tnlRandom.h File Reference

`#include "tnl.h"`

## Namespaces

namespace | TNL
namespace | TNL::Random

## Functions

void | TNL::Random::addEntropy (const U8 *randomData, U32 dataLen)
| Adds random "seed" data to the random number generator.
void | TNL::Random::read (U8 *outBuffer, U32 randomLen)
| Reads random byte data from the random number generator.
U32 | TNL::Random::readI ()
| Reads a 0...U32_MAX random number from the random number generator.
U32 | TNL::Random::readI (U32 rangeStart, U32 rangeEnd)
| Reads a random number between rangeStart and rangeEnd inclusive from the random number generator.
F32 | TNL::Random::readF ()
| Reads a floating point value from 0 to 1 from the random number generator.
bool | TNL::Random::readB ()
| Returns a single random bit.
void * | TNL::Random::getState ()
| Returns an opaque pointer to the random number generator's internal state for use in certain encryption functions.