aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-23 20:03:12 +0000
committerlloyd <[email protected]>2010-03-23 20:03:12 +0000
commitda717d6f26dab0cc4fad4dabf53bcff4eb4555e5 (patch)
tree59ca0619990063e0f12a302b1ce93b6cd853e18d
parent3c2af00d392ce83fc55090e3865973d25d2a94b3 (diff)
Don't delete the global RNG in AutoSeeded_RNG's destructor
-rw-r--r--src/rng/auto_rng/auto_rng.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/rng/auto_rng/auto_rng.h b/src/rng/auto_rng/auto_rng.h
index 9a93fee8f..90f342a50 100644
--- a/src/rng/auto_rng/auto_rng.h
+++ b/src/rng/auto_rng/auto_rng.h
@@ -35,7 +35,6 @@ class BOTAN_DLL AutoSeeded_RNG : public RandomNumberGenerator
{ rng->add_entropy(in, len); }
AutoSeeded_RNG() { rng = &global_state().global_rng(); }
- ~AutoSeeded_RNG() { delete rng; }
private:
RandomNumberGenerator* rng;
};