helpLinPhone - SIP Video phone - Support: sr #108940, [PATCH] reduce modulo bias if...

 
 

sr #108940: [PATCH] reduce modulo bias if target platform supports arc4random_uniform()

Submitted by:  Loganaden Velvindron <loganaden>
Submitted on:  Tue 15 Dec 2015 07:01:38 PM UTC  
 
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating System: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 15 Dec 2015 07:01:38 PM UTC, original submission:

ortp uses ortp_random % (1000). This introduces a modulo bias which makes it less random.

MAC OS X, iOS, Linux (with libbsd), FreeBSD and OpenBSD have an API known as arc4random_uniform() which solves the modulo bias problem.

Support that if available else fallback.

Loganaden Velvindron <loganaden>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #35754:  ortp.diff added by loganaden (3KiB - text/plain - use arc4random_uniform() if target platform supports it)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by loganaden (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 15 Dec 2015 07:01:38 PM UTCloganadenAttached File-=>Added ortp.diff, #35754

    Back to the top


    Powered by Savane 3.1-cleanup1