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:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating 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 Files:
   
   
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
  • -email is unavailable- added by loganaden (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-12-15 loganaden Attached File- => Added ortp.diff, #35754

    Back to the top


    Powered by Savane 3.3