changeset 7255:e78c6f6e759c

[gaim-migrate @ 7832] random is cooler committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 14 Oct 2003 03:26:11 +0000
parents bb0160033e50
children c93493c59ac3
files src/protocols/jabber/auth.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/jabber/auth.c	Tue Oct 14 03:12:28 2003 +0000
+++ b/src/protocols/jabber/auth.c	Tue Oct 14 03:26:11 2003 +0000
@@ -273,7 +273,8 @@
 		char *realm;
 		char *nonce;
 
-		cnonce = g_strdup_printf("%p%u%p", js, (int)time(NULL), packet);
+		cnonce = g_strdup_printf("%x%u%x", g_random_int(), (int)time(NULL),
+				g_random_int());
 		nonce = g_hash_table_lookup(parts, "nonce");
 		realm = g_hash_table_lookup(parts, "realm");