mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-30 09:07:32 -04:00
first version of distant messages. Still needs some debugging
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-GenericTunneling@6344 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6a88d7382a
commit
ca279ec0c2
13 changed files with 442 additions and 24 deletions
|
@ -51,6 +51,10 @@ bool RSRandom::seed(uint32_t s)
|
|||
return true ;
|
||||
}
|
||||
|
||||
void RSRandom::random_bytes(unsigned char *data,uint32_t size)
|
||||
{
|
||||
RAND_bytes(data,size) ;
|
||||
}
|
||||
void RSRandom::locked_next_state()
|
||||
{
|
||||
#ifdef RSRANDOM_USE_SSL
|
||||
|
|
|
@ -46,6 +46,7 @@ class RSRandom
|
|||
static bool seed(uint32_t s) ;
|
||||
|
||||
static std::string random_alphaNumericString(uint32_t length) ;
|
||||
static void random_bytes(unsigned char *data,uint32_t length) ;
|
||||
|
||||
private:
|
||||
static RsMutex rndMtx ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue