Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

OW32::CAsyncResolverRandom Class Reference

A random number generator used for generating query ids, from djb's public domain DNS client code. More...

#include <AsyncResolverRandom.h>

List of all members.

Public Member Functions

 CAsyncResolverRandom ()
 Construct a new, uninitialised random object.
 CAsyncResolverRandom (const char data[128])
 Construct an initialised random object.
void initialise (const char data[128])
 Initialise the random object.
unsigned int random (unsigned int n)
 Return a random number modulo n.


Detailed Description

A random number generator used for generating query ids, from djb's public domain DNS client code.


Member Function Documentation

unsigned int OW32::CAsyncResolverRandom::random unsigned int  n  ) 
 

Return a random number modulo n.

If n is zero then the return is 0.


The documentation for this class was generated from the following file:
Generated on Sun Jun 5 01:29:21 2005 for OW32 by  doxygen 1.3.9.1