Update of /cvsroot/gaim/gaim/src/protocols/jabber
In directory sc8-pr-cvs1:/tmp/cvs-serv7081/src/protocols/jabber
Modified Files:
auth.c
Log Message:
random is cooler
Index: auth.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/protocols/jabber/auth.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -p -r1.4 -r1.5
--- auth.c 5 Oct 2003 05:35:44 -0000 1.4
+++ auth.c 14 Oct 2003 03:26:11 -0000 1.5
@@ -273,7 +273,8 @@ jabber_auth_handle_challenge(JabberStrea
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");
|