add reseed from floodfill option

This commit is contained in:
Jeff Becker 2016-11-14 12:05:44 -05:00
parent eaa7adc88c
commit ea31ca5ee8
5 changed files with 100 additions and 9 deletions

8
Tag.h
View file

@ -11,6 +11,7 @@
#include <boost/static_assert.hpp>
#include <string.h>
#include <openssl/rand.h>
#include "Base.h"
namespace i2p {
@ -49,7 +50,12 @@ public:
{
memset(m_Buf, c, sz);
}
void Randomize()
{
RAND_bytes(m_Buf, sz);
}
std::string ToBase64 () const
{
char str[sz*2];