
19 Jun
2008
19 Jun
'08
12:12 p.m.
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