FemtoScan Online SDK Documentation

Home :: FsOnlineSDK :: fsio classes

class prng

? ^ 
Pseudo-random number generator.

Source:
../fsio/prng.h:21
Author:
ATC
Version:
1.0

Contents

^ 
EntityTypeScopeShort Description
~prngdestructor public Destructor.
prngconstructor public Default constructor
prngconstructor public Copy constructor.
generatemethod public Generate random number.
get_lengthmethod public Get random number length.
initmethod public Initialisation function.
operator =operator public Copy operator.

destructor ~prng

? ^  > 
Destructor.

Frees all context data.

Source:
../fsio/prng.h:51
Code:
public virtual ~ prng ( )

constructor prng

? ^  < > 
Default constructor
Source:
../fsio/prng.h:27
Code:
public prng ( ) : length ( 0 ) , pCtx ( 0 ) , size ( 0 ) , seed ( 0 )

constructor prng

? ^  < > 
Copy constructor.
Source:
../fsio/prng.h:32
Code:
public prng ( const prng & X )

method generate

? ^  < > 
Generate random number.

Generates the random number of the length, specified in the init function.

Source:
../fsio/prng.h:59
Param:
dst destination buffer for result storage.
Returns:
true on success
Code:
public bool generate ( void * dst )

method get_length

? ^  < > 
Get random number length.
Source:
../fsio/prng.h:65
Returns:
length of the generating random number.
Code:
public int get_length ( ) const

method init

? ^  < > 
Initialisation function.
Source:
../fsio/prng.h:45
Params:
len length in bytes of the target random number.
seed seed value of 5*sizeof(int) length.
Code:
public void init ( int len ,
const void * sd )

operator =

? ^  < > 
Copy operator.
Source:
../fsio/prng.h:38
Returns:
reference to itself.
Code:
public prng & operator = ( const prng & X )

(C) Advanced Technologies Center, 2002-2006
For support contact us at fsdev@nanoscopy.net