summaryrefslogtreecommitdiff
path: root/auto_tests/save_friend_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'auto_tests/save_friend_test.c')
-rw-r--r--auto_tests/save_friend_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/auto_tests/save_friend_test.c b/auto_tests/save_friend_test.c
index a7b41f52..1e90e692 100644
--- a/auto_tests/save_friend_test.c
+++ b/auto_tests/save_friend_test.c
@@ -7,6 +7,7 @@
7 7
8#include "helpers.h" 8#include "helpers.h"
9#include "../toxcore/ccompat.h" 9#include "../toxcore/ccompat.h"
10#include "../toxcore/crypto_core.h"
10#include "../toxcore/tox.h" 11#include "../toxcore/tox.h"
11 12
12#include <assert.h> 13#include <assert.h>
@@ -27,7 +28,7 @@ static void set_random(Tox *m, bool (*setter)(Tox *, const uint8_t *, size_t, TO
27 uint32_t i; 28 uint32_t i;
28 29
29 for (i = 0; i < length; ++i) { 30 for (i = 0; i < length; ++i) {
30 text[i] = rand(); 31 text[i] = random_u08();
31 } 32 }
32 33
33 setter(m, text, SIZEOF_VLA(text), nullptr); 34 setter(m, text, SIZEOF_VLA(text), nullptr);