diff options
author | lloyd <[email protected]> | 2008-10-26 03:07:18 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-10-26 03:07:18 +0000 |
commit | a8ee54d459a42d98fdfe1e9ff4f0c011c2f41e10 (patch) | |
tree | 576d871ed243508e5458456d12ea99d240e8339c /src/utils/timer/timer_base/timers.h | |
parent | b1344477a80c7410da9ce05dd3343c04d24f8095 (diff) |
Move rng.{cpp,h} from core to rng/ topdir
Add a new class AutoSeeded_RNG that is a RandomNumberGenerator that wraps
up the logic formerly in RandomNumberGenerator::make_rng. make_rng in
fact now just returns a new AutoSeeded_RNG object.
AutoSeeded_RNG is a bit more convenient because
- No need to use auto_ptr
- No need to dereference (same syntax everywhere - it's an underestimated
advantage imo)
Also move the code from timer/timer_base to timer/
Diffstat (limited to 'src/utils/timer/timer_base/timers.h')
-rw-r--r-- | src/utils/timer/timer_base/timers.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/utils/timer/timer_base/timers.h b/src/utils/timer/timer_base/timers.h deleted file mode 100644 index 253f71f6b..000000000 --- a/src/utils/timer/timer_base/timers.h +++ /dev/null @@ -1,29 +0,0 @@ -/************************************************* -* Timestamp Functions Header File * -* (C) 1999-2007 Jack Lloyd * -*************************************************/ - -#ifndef BOTAN_TIMERS_H__ -#define BOTAN_TIMERS_H__ - -#include <botan/rng.h> - -namespace Botan { - -/************************************************* -* Timer Interface * -*************************************************/ -class BOTAN_DLL Timer : public EntropySource - { - public: - virtual u64bit clock() const; - u32bit slow_poll(byte[], u32bit); - - virtual ~Timer() {} - protected: - static u64bit combine_timers(u32bit, u32bit, u32bit); - }; - -} - -#endif |