loudmouth/lm-utils.c
changeset 176 5cddc8cc2f78
parent 168 ac1affcd5d22
child 177 3ef4992a4898
--- a/loudmouth/lm-utils.c	Sun Sep 10 22:09:30 2006 +0000
+++ b/loudmouth/lm-utils.c	Mon Sep 11 19:14:23 2006 +0000
@@ -70,9 +70,12 @@
 gchar *
 _lm_utils_generate_id (void)
 {
-	static gint  number = 0;
+	static guint last_id = 0;
+	gint         random;
 
-	return g_strdup_printf ("msg_%d", ++number);
+	random = g_random_int ();
+	
+	return g_strdup_printf ("%o%o", last_id++ ^ random, random);
 }
 
 gchar *