Random Number Interface

DESCRIPTION

Interface for generating pseudo-random numbers. This random number generator must not be used in applications needing cryptographically strong random numbers. For that purpose the SILC Crypto Toolkit should be used.

The implementation uses Mersenne Twister random number generator.

The SILC Rand API is thread-safe. Each thread can use the API at the same time without affecting the random state of other threads.

EXAMPLE

 silc_rand_seed(seed);
 printf("Random number: %lu", silc_rand());

TABLE OF CONTENTS