Trac is being migrated to new services! Issues can be found in our new YouTrack instance and WIKI pages can be found on our website.

Ticket #8198: pidgin-NOT-UPSTREAM-2.5.4-icq-russia.patch

File pidgin-NOT-UPSTREAM-2.5.4-icq-russia.patch, 928 bytes (added by eveel, 15 years ago)

final version without g_random_set_seed() overhead

  • pidgin-2.5.4/libpurple/protocols/oscar/flap_connection.c

    old new  
    317317{
    318318        FlapConnection *conn;
    319319
     320        static const guint FlapLoginSeqs[] = { 5695, 23595, 23620, 23049, 0x2886, 0x2493, 23620, 23049, 2853, 17372, 1255, 1796, 1657, 13606, 1930,  23918, 31234,  30120, 0x1BEA, 0x5342, 0x30CC, 0x2294, 0x5697,0x25FA, 0x3303, 0x078A, 0x0FC5, 0x25D6, 0x26EE,0x7570, 0x7F33, 0x4E94, 0x07C9, 0x7339, 0x42A8 };
     321
    320322        conn = g_new0(FlapConnection, 1);
    321323        conn->od = od;
    322324        conn->buffer_outgoing = purple_circ_buffer_new(0);
     
    324326        conn->subtype = -1;
    325327        conn->type = type;
    326328
     329        conn->seqnum_out = FlapLoginSeqs[g_random_int_range(0, (sizeof FlapLoginSeqs) / (sizeof FlapLoginSeqs[0]))] - 1;
     330
    327331        od->oscar_connections = g_slist_prepend(od->oscar_connections, conn);
    328332
    329333        return conn;
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!