bug fix in FileData test

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7235 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-04-05 13:03:43 +00:00
parent f2380d0926
commit 3a18136678

View File

@ -133,12 +133,13 @@ TEST(libretroshare_serialiser, test_RsTlvFileData)
/* initialise */
d1.file.filesize = 101010;
d1.file.hash = "ABCDEFEGHE";
d1.file.hash = RsFileHash::random() ;
d1.file.name = "";
d1.file.age = 0;
d1.file.pop = 0;
char data[15];
unsigned char data[15];
RSRandom::random_bytes(data,15) ;
d1.binData.setBinData(data, 15);
d1.file_offset = 222;