[gaim-migrate @ 7832]

Tue, 14 Oct 2003 03:26:11 +0000

author
Nathan Walp <nwalp@pidgin.im>
date
Tue, 14 Oct 2003 03:26:11 +0000
changeset 7255
1d0abff6ca11
parent 7254
06891430d9a1
child 7256
311c8febfc92

[gaim-migrate @ 7832]
random is cooler

src/protocols/jabber/auth.c file | annotate | diff | comparison | revisions
--- 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");
 

mercurial