[tor-bugs] #7801 [Tor]: Our one use of tor_weak_random() is subtly wrong

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Dec 28 00:39:16 UTC 2012


#7801: Our one use of tor_weak_random() is subtly wrong
-----------------------+----------------------------------------------------
 Reporter:  nickm      |          Owner:                    
     Type:  defect     |         Status:  needs_review      
 Priority:  minor      |      Milestone:  Tor: 0.2.4.x-final
Component:  Tor        |        Version:                    
 Keywords:  tor-relay  |         Parent:                    
   Points:             |   Actualpoints:                    
-----------------------+----------------------------------------------------

Comment(by cypherpunks):

 To be clear, it's not only windows limits RAND_MAX to so slow values. No
 guarantees to find RAND_MAX >= INT_MAX for all another platforms too. Only
 one guarantee that RAND_MAX is no less than 0x7fff.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7801#comment:12>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list