mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-01 10:46:23 -04: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
|
@ -99,7 +99,7 @@ RsSerialType* init_item(RsChatLobbyInviteItem& cmi)
|
|||
|
||||
RsSerialType* init_item(RsPrivateChatMsgConfigItem& pcmi)
|
||||
{
|
||||
pcmi.configPeerId.random();
|
||||
pcmi.configPeerId = RsPeerId::random();
|
||||
pcmi.chatFlags = rand()%34;
|
||||
pcmi.configFlags = rand()%21;
|
||||
pcmi.sendTime = rand()%422224;
|
||||
|
@ -174,7 +174,7 @@ RsSerialType* init_item(RsMsgTags& mt)
|
|||
RsSerialType* init_item(RsMsgSrcId& ms)
|
||||
{
|
||||
ms.msgId = rand()%434;
|
||||
ms.srcId.random();
|
||||
ms.srcId = RsPeerId::random();
|
||||
|
||||
return new RsMsgSerialiser();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue