summaryrefslogtreecommitdiff
path: root/src/rexmpp_random.h
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2023-09-29 20:24:16 +0300
committerdefanor <defanor@uberspace.net>2023-09-29 20:24:16 +0300
commitccdb748c81abc9bb30b8989e27d22bbbb219f9a0 (patch)
tree295be2ea605c8acbe56116ea3ce119b99e3e0440 /src/rexmpp_random.h
parent04e6fd5194481798bc30abc7a690664d5af36aeb (diff)
Add more checks, tests, and documentation
Diffstat (limited to 'src/rexmpp_random.h')
-rw-r--r--src/rexmpp_random.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rexmpp_random.h b/src/rexmpp_random.h
index 1b21001..b0f1978 100644
--- a/src/rexmpp_random.h
+++ b/src/rexmpp_random.h
@@ -19,4 +19,11 @@
*/
void rexmpp_random_buf (void *buf, size_t len);
+/**
+ @brief Generates a random ASCII identifier.
+ @returns A null-terminated string, which must be freed by the
+ caller.
+*/
+char *rexmpp_random_id ();
+
#endif