mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
add reseed from floodfill option
This commit is contained in:
parent
eaa7adc88c
commit
ea31ca5ee8
5 changed files with 100 additions and 9 deletions
8
Tag.h
8
Tag.h
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue