Move code from jid_random_resource() into own function

Move the code that creates a random string into it's own function
+get_random_string().
This commit is contained in:
Michael Vetter
2019-10-16 10:39:35 +02:00
parent 1e09a055ca
commit f9eb302a59
3 changed files with 26 additions and 12 deletions

View File

@@ -103,4 +103,6 @@ int is_regular_file(const char *path);
int is_dir(const char *path);
void get_file_paths_recursive(const char *directory, GSList **contents);
char* get_random_string(int length);
#endif