]> arthur.barton.de Git - netdata.git/commitdiff
replaced uuid_generate_time_safe() with uuid_generate_time() since the first is not...
authorCosta Tsaousis <costa@tsaousis.gr>
Fri, 13 May 2016 23:42:55 +0000 (02:42 +0300)
committerCosta Tsaousis <costa@tsaousis.gr>
Fri, 13 May 2016 23:42:55 +0000 (02:42 +0300)
src/registry.c

index 4e88dc6546c088a72ddec85b0fcf4a7ee2f56250..6d53176c2e7edff7cd6217965f79f0b2e1a4d0b4 100644 (file)
@@ -1262,17 +1262,12 @@ char *registry_get_this_machine_guid(void) {
 
        // generate a new one?
        if(!registry.machine_guid[0]) {
-               int count = 10, ret = 0;
                uuid_t uuid;
 
-               // for some reason it reports unsafe generation the first time
-               while(count-- && (ret = uuid_generate_time_safe(uuid)) == -1) ;
+               uuid_generate_time(uuid);
                uuid_unparse_lower(uuid, registry.machine_guid);
                registry.machine_guid[36] = '\0';
 
-               if(ret == -1)
-                       info("Warning: generated machine GUID '%s' was not generated using a safe method.", registry.machine_guid);
-
                // save it
                fd = open(registry.machine_guid_filename, O_WRONLY|O_CREAT|O_TRUNC, 444);
                if(fd == -1)