Changeset 1340 for pjproject/trunk


Ignore:
Timestamp:
Jun 5, 2007 9:36:54 PM (17 years ago)
Author:
bennylp
Message:

Ticket #318: CSeq generation may produce negative number on Blackfin/VisualDSP++ (thanks Jarek Szymkowski)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_dialog.c

    r1240 r1340  
    195195 
    196196    /* Randomize local CSeq. */ 
    197     dlg->local.first_cseq = pj_rand() % 0x7FFFFFFFL; 
     197    dlg->local.first_cseq = pj_rand() & 0x7FFFFFFFL; 
    198198    dlg->local.cseq = dlg->local.first_cseq; 
    199199 
     
    363363 
    364364    /* Randomize local cseq */ 
    365     dlg->local.first_cseq = pj_rand() % 0x7FFFFFFFL; 
     365    dlg->local.first_cseq = pj_rand() & 0x7FFFFFFFL; 
    366366    dlg->local.cseq = dlg->local.first_cseq; 
    367367 
Note: See TracChangeset for help on using the changeset viewer.