Closed bsmelo closed 8 years ago
+1
Fair for me as well
I've granted you write access to the repository since you have lots of contributions already. Just make sure to read https://github.com/solettaproject/soletta/wiki/Contributing#contributions-flow please. Thanks
Merged
In case SOL_PLATFORM_LINUX is defined, this function expects an UUID from the environment variable SOL_MACHINE_ID. It was only considering UUIDs formed by 32 chars, and not 36.
This patch fixes that, leaving the length to be check by sol_util_uuid_str_is_valid(), which already does that, and if the length is 36, we remove the hyphens, since the returned value is expected to contain only hex digits. Valid formats (32 chars and 36 chars + hyphens) for UUIDs were obtained from [1].
[1] https://en.wikipedia.org/wiki/Universally_unique_identifier
Signed-off-by: Bruno Melo bsilva.melo@gmail.com