Tue, 14 Oct 2003 03:26:11 +0000
[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");