On 03/08/2016 04:36, Fam Zheng wrote:
> On Tue, 08/02 15:45, Paolo Bonzini wrote:
>>
>>
>> ----- Original Message -----
>>> From: "Fam Zheng" <[email protected]>
>>> To: [email protected]
>>> Cc: [email protected], [email protected], [email protected], 
>>> [email protected], [email protected],
>>> [email protected], [email protected], [email protected], 
>>> [email protected]
>>> Sent: Tuesday, August 2, 2016 11:18:32 AM
>>> Subject: [PATCH 1/7] util: Add UUID API
>>>
>>> A number of different places across the code base use CONFIG_UUID. Some
>>> of them are soft dependency, some are not built if libuuid is not
>>> available, some come with dummy fallback, some throws runtime error.
>>>
>>> It is hard to maintain, and hard to reason for users.
>>>
>>> Since UUID is a simple standard with only a small number of operations,
>>> it is cleaner to have a central support in libqemuutil. This patch adds
>>> qemu_uuid_* the functions so that all uuid users in the code base can
>>> rely on. Except for qemu_uuid_generate which is new code, all other
>>> functions are just copy from existing fallbacks from other files.
>>
>> How is g_random_* seeded?
> 
> According to glib doc:
> 
>> GLib changed the seeding algorithm for the pseudo-random number generator
>> Mersenne Twister, as used by GRand.
> 
> The urandom source is /dev/urandom (or time based if unavailable).

That's great then.

Paolo

Reply via email to