Mercurial > pidgin.yaz
diff src/protocols/jabber/auth.c @ 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 | fae7cfe975fd |
children | 109817b028a6 |
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");