@cryptotaxi247 / netdata-1 / commits / c02366119

replaced uuid_generate_time_safe() with uuid_generate_time() since the first is not available in older versions of libuuid

Costa Tsaousis committed May 14, 2016 at 02:42 UTC c023661199be9cdacfeff03d8567e878926a275f
1 file changed +1 -6
src/registry.c
+1 -6
@@ -1262,17 +1262,12 @@ char *registry_get_this_machine_guid(void) {
1262
1263 // generate a new one?
1264 if(!registry.machine_guid[0]) {
1265 - int count = 10, ret = 0;
1265 uuid_t uuid;
1266
1268 - // for some reason it reports unsafe generation the first time
1269 - while(count-- && (ret = uuid_generate_time_safe(uuid)) == -1) ;
1267 + uuid_generate_time(uuid);
1268 uuid_unparse_lower(uuid, registry.machine_guid);
1269 registry.machine_guid[36] = '\0';
1270
1273 - if(ret == -1)
1274 - info("Warning: generated machine GUID '%s' was not generated using a safe method.", registry.machine_guid);
1275 -
1271 // save it
1272 fd = open(registry.machine_guid_filename, O_WRONLY|O_CREAT|O_TRUNC, 444);
1273 if(fd == -1)