WARN <qof.engine> [guid_init()] only got xxxx bytes. The identifiers might not be very random.
John Ralls
jralls at ceridwen.us
Mon Mar 7 16:02:27 EST 2011
On Mar 7, 2011, at 12:02 PM, Geert Janssens wrote:
> On maandag 7 maart 2011, Phil Longstaff wrote:
>> Can the qof guid library be replaced by libuuid on linux?
>>
>> Phil
>> ---------
>> I used to be a hypochondriac AND a kleptomaniac. So I took something for
>> it.
>>
>>
>>
>>
>> ________________________________
>> From: Phil Longstaff <plongstaff at rogers.com>
>> To: Geert Janssens <janssens-geert at telenet.be>
>> Cc: Gnucash Devel <gnucash-devel at lists.gnucash.org>
>> Sent: Mon, March 7, 2011 2:34:15 PM
>> Subject: Re: WARN <qof.engine> [guid_init()] only got xxxx bytes. The
>> identifiers might not be very random.
>>
>> It seems to me that a guid is a guid. Can you just use the win32 function
>> UuidCreate()?
>>
>> Phil
>> ---------
>> I used to be a hypochondriac AND a kleptomaniac. So I took something for
>> it.
>>
> Those seem good proposals to me. The only (smallish) problem I see is that the
> guids generated by libuuid and UuidCreate have a slightly different format
> than what we use now. So we'd still have to wrap these libraries to output
> guids in the format we are using so far. But that seems to be a small issue.
That's the string value. We should just get the uint-128 and shove it into the Qof structure and let Qof handle formatting it.
For completeness, the Quartz function is CFUUIDCreate(); it returns an opaque CFUUID object, and you retrieve the value as a struct of 16 uint8s with CFUUIDGetBytes().
Regards,
John Ralls
More information about the gnucash-devel
mailing list