about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/xmpp/connection.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c
index 5632f51d..2d2e5773 100644
--- a/src/xmpp/connection.c
+++ b/src/xmpp/connection.c
@@ -49,6 +49,7 @@
 #include <strophe.h>
 #endif
 
+#include "common.h"
 #include "log.h"
 #include "config/files.h"
 #include "config/preferences.h"
@@ -632,11 +633,11 @@ static void _random_bytes_init()
     rndbytes = g_key_file_new();
     g_key_file_load_from_file(rndbytes, rndbytes_loc, G_KEY_FILE_KEEP_COMMENTS, NULL);
 
-    if (g_key_file_has_group(rndbytes, "instance")) {
-        random_bytes = g_key_file_get_string(rndbytes, "instance", "random_bytes", NULL);
+    if (g_key_file_has_group(rndbytes, "identifier")) {
+        random_bytes = g_key_file_get_string(rndbytes, "identifier", "random_bytes", NULL);
     } else {
-        random_bytes = g_strdup("ASDF");
-        g_key_file_set_string(rndbytes, "instance", "random_bytes", random_bytes);
+        random_bytes = get_random_string(10);
+        g_key_file_set_string(rndbytes, "identifier", "random_bytes", random_bytes);
 
         gsize g_data_size;
         gchar *g_accounts_data = g_key_file_to_data(rndbytes, &g_data_size, NULL);
/span> ^
6f6d458f ^
4a943d4e ^



292ccba1 ^

aa2e2155 ^
222c31db ^
c442a5ad ^

62c6d163 ^
292ccba1 ^

c442a5ad ^
292ccba1 ^




4a943d4e ^

6f6d458f ^

4a943d4e ^

83c67014 ^
4a943d4e ^






6f6d458f ^
4a943d4e ^



292ccba1 ^


c442a5ad ^
222c31db ^
292ccba1 ^

c442a5ad ^

292ccba1 ^


4a943d4e ^

6f6d458f ^

4a943d4e ^

83c67014 ^
4a943d4e ^


83c67014 ^
4a943d4e ^




6f6d458f ^
4a943d4e ^



292ccba1 ^


0f851e48 ^

aa2e2155 ^
4a943d4e ^

6f6d458f ^

36c745f8 ^
4a943d4e ^
83c67014 ^
4a943d4e ^

83c67014 ^
4a943d4e ^







292ccba1 ^


c442a5ad ^

292ccba1 ^
c442a5ad ^
292ccba1 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122