[syslog-ng] [PATCH (3.4)] tfuuid: New template function to generate UUIDs.

Gergely Nagy algernon at balabit.hu
Tue Jan 17 00:27:03 CET 2012


Balazs Scheidler <bazsi at balabit.hu> writes:

> If possible I'd avoid using another library, there'd a random based UUID
> generator function in modules/dbparser/patternize.c
>
> Can you check if libuuid does anything more than that?

I'll have a look, thanks for the pointer!

>> +
>> +TEMPLATE_FUNCTION_SIMPLE(tf_uuid);
>> +
>> +static Plugin tfuuid_plugins[] =
>> +  {
>> +    TEMPLATE_FUNCTION_PLUGIN(tf_uuid, "UUID"),
>> +    TEMPLATE_FUNCTION_PLUGIN(tf_uuid, "uuid"),
>> +  };
>
> why use two names? I'd prefer the lower case one.

Because my fingers were used to typing UUID, and I kept misspelling it
all the time, and in the end I gave up, fingers won. :(

-- 
|8]



More information about the syslog-ng mailing list