# HG changeset patch # User Nathan Walp # Date 1066101971 0 # Node ID e78c6f6e759c016c8c7a130fb0f2f436842e0bf2 # Parent bb0160033e50a5f355ea4fad2c5e1a9ce2d26cff [gaim-migrate @ 7832] random is cooler committer: Tailor Script diff -r bb0160033e50 -r e78c6f6e759c src/protocols/jabber/auth.c --- 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");