[haiku-bugs] [Haiku] #6061: [PATCH] Fix OpenFirmware system_time

  • From: "andreasf" <trac@xxxxxxxxxxxx>
  • Date: Sun, 23 May 2010 13:12:43 -0000

#6061: [PATCH] Fix OpenFirmware system_time
--------------------------------+-------------------------------------------
 Reporter:  andreasf            |       Owner:  axeld         
     Type:  bug                 |      Status:  new           
 Priority:  normal              |   Milestone:  R1            
Component:  System/Boot Loader  |     Version:  R1/Development
 Keywords:                      |    Platform:  PowerPC       
Blockedby:                      |       Patch:  0             
 Blocking:  5240                |  
--------------------------------+-------------------------------------------
 OpenFirmware-based {{{system_time}}} implementation returned the number of
 milliseconds since boot multiplied by 1000. On my PowerMac G3 300 MHz this
 results in values around 1600000 and due to the limited resolution often
 to identical values on subsequent boots.

 Thus {{{system_time}}} becomes unusable as a PRNG seed for TCP client
 ports since the server would be in the Timed Wait state, resulting in a
 connection timeout.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6061>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: