FemtoScan Online SDK Documentation
Pseudo-random number generator.
- Source:
- ../fsio/prng.h:21
- Author:
- ATC
- Version:
- 1.0
Entity | Type | Scope | Short Description |
~prng | destructor | public | Destructor.
|
prng | constructor | public | Default constructor
|
prng | constructor | public | Copy constructor.
|
generate | method | public | Generate random number.
|
get_length | method | public | Get random number length.
|
init | method | public | Initialisation function.
|
operator = | operator | public | Copy operator.
|
Destructor.
Frees all context data.
- Source:
- ../fsio/prng.h:51
- Code:
public virtual ~ prng ( ) |
Default constructor
- Source:
- ../fsio/prng.h:27
- Code:
public prng ( | ) : length ( 0 ) , pCtx ( 0 ) , size ( 0 ) , seed ( 0 ) |
Copy constructor.
- Source:
- ../fsio/prng.h:32
- Code:
public prng ( | const prng & X ) |
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 ) |
Get random number length.
- Source:
- ../fsio/prng.h:65
- Returns:
- length of the generating random number.
- Code:
public int get_length ( | ) const |
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 ) |
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