From 0421268daa143ea0944149f0b4698f2f03f96a7e Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Sun, 18 Dec 2011 01:24:08 -0800 Subject: [PATCH] Add 'zero' method to zero a uint. --- uint256.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/uint256.h b/uint256.h index 0f79ff8557..aff3487965 100644 --- a/uint256.h +++ b/uint256.h @@ -374,6 +374,10 @@ public: return sizeof(pn); } + void zero(void) + { + memset(&pn[0], 0, sizeof(pn)); + } unsigned int GetSerializeSize(int nType=0) const {