|
Boost : |
From: Kasra \(Math & ComSci\) (kasra_n500_at_[hidden])
Date: 2008-06-19 08:12:55
Hi,
I am currently working on some cryptography algorithms for boost, I need a class such that:
template < class RNG >
class wiper
{
private:
static RNG default_rng;
public:
void wipe(void *buffer,
std::size_t count, RNG& specific_rng = default_rng)
{
.
.
.
if( some_thing_is_true )
specific_rng.get_the_next_number_in_sequence();
.
.
}
};
So I would like a provide the class with a template class (RNG) that is the base of random number generation.
However, I looked at random number generators on [boost][random] but they don't seem to implement a base class! Am I right or I have mised something?
regards
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk