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

 
 

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

Submitter:  Loganaden Velvindron <loganaden>
Submitted:  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
* Mandatory Fields

Add a New Comment Rich Markup
   

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    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.13-c373.
    Corresponding source code