bug#15366: MBR disk signature not random enough

2013-11-23 Thread Phillip Susi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 This was fixed by this commit: commit 70aa35b2b4d2e723fe82ac3184e5921a52be73ab Author: Jonathan Liu Date: Fri Oct 4 07:32:12 2013 -0700 dos: improve MBR signature generation Using tv_usec in struct timeval from gettimeofday() doesn'

bug#15366: MBR disk signature not random enough

2013-09-13 Thread Philip Rowlands
libparted/labels/dos.c:generate_random_id() is used to create a new mbr_signature where none exists. The possible return values for generate_random_id() range from 0 to 99, derived from the tv_usec field of gettimeofday(2). This limits the actual value written to mbr_signature to 0.023% of