Refactor free functions into RandomNumbers

This commit is contained in:
Vinnie Falco
2013-06-04 12:38:54 -07:00
parent 882102e9fd
commit 0523d6a054
16 changed files with 223 additions and 54 deletions

View File

@@ -803,7 +803,7 @@ void RippleAddress::setSeedRandom()
// XXX Maybe we should call MakeNewKey
uint128 key;
getRand(key.begin(), key.size());
RandomNumbers::getInstance ().fillBytes (key.begin(), key.size());
RippleAddress::setSeed(key);
}