[Bugs] #17 MINO: Sugar-Emulator has no access control

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Fri Dec 12 13:40:37 EST 2008


#17: Sugar-Emulator has no access control
---------------------+------------------------------------------------------
  Reporter:  morgs   |       Owner:  marcopg 
      Type:  defect  |      Status:  assigned
  Priority:  minor   |   Component:  sugar   
Resolution:          |    Keywords:  r?      
---------------------+------------------------------------------------------

Comment(by mungewell):

 The testing of len < 32 is a bit of a nasty way to compensate for leading
 '0's

 Slightly better way of fixing leading zeros...

 change
 '%s' % hex(random.getrandbits(128))[2:-1]
 for
 '%032X' % random.getrandbits(128)

 and then you don't need the test for lenght.
 Mungewell.

-- 
Ticket URL: <http://dev.sugarlabs.org/ticket/17#comment:4>
Sugar Labs <http://sugarlabs.org>
Sugar Labs bug tracking system


More information about the Bugs mailing list