mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-15 08:39:08 -05:00
updated tests and also fixed a few bugs in using random initialisation routines
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.6-NewGRouterModel@7839 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e8f5f44318
commit
ac4f51623b
17 changed files with 95 additions and 91 deletions
|
|
@ -68,7 +68,7 @@ void init_item(RsTlvSecurityKeySet& ks)
|
|||
for(int i=1; i<n; i++)
|
||||
{
|
||||
RsGxsId a_str;
|
||||
a_str.random();
|
||||
a_str = RsGxsId::random();
|
||||
|
||||
RsTlvSecurityKey& a_key = ks.keys[a_str];
|
||||
init_item(a_key);
|
||||
|
|
@ -190,7 +190,7 @@ void init_item(RsTlvSecurityKey& sk)
|
|||
sk.endTS = randnum;
|
||||
sk.keyFlags = randnum;
|
||||
sk.startTS = randnum;
|
||||
sk.keyId.random();
|
||||
sk.keyId = RsGxsId::random();
|
||||
|
||||
std::string randomStr;
|
||||
randString(LARGE_STR, randomStr);
|
||||
|
|
@ -202,7 +202,7 @@ void init_item(RsTlvSecurityKey& sk)
|
|||
|
||||
void init_item(RsTlvKeySignature& ks)
|
||||
{
|
||||
ks.keyId.random();
|
||||
ks.keyId = RsGxsId::random();
|
||||
|
||||
std::string signData;
|
||||
randString(LARGE_STR, signData);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue