Commit 235745bb authored by Pekka Pessi's avatar Pekka Pessi
Browse files

nta.c: use su_randint() to generate RSeq.

darcs-hash:20061207145843-65a35-acff80ac018f046b7db4fa781dc57321bf073be5.gz
parent 995ac6d2
......@@ -4325,9 +4325,7 @@ nta_incoming_t *incoming_create(nta_agent_t *agent,
if (irq->irq_must_100rel ||
(sip->sip_supported &&
sip_has_feature(sip->sip_supported, "100rel"))) {
/* Initialize rseq */
irq->irq_rseq = (random() & 0x7fffffff);
irq->irq_rseq += irq->irq_rseq == 0;
irq->irq_rseq = su_randint(1, 0x7fffffff); /* Initialize rseq */
}
queue = agent->sa_in.proceeding;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment