Replaced unused timezone parameter of gettimeofday() by NULL

This commit is contained in:
2016-03-10 21:04:48 +01:00
parent cd84f0927f
commit d8dca37d65
3 changed files with 5 additions and 9 deletions

View File

@@ -2354,7 +2354,6 @@ void iso_random_uuid(Ecma119Image *t, uint8_t uuid[16])
static uint8_t uuid_urandom[16];
uint32_t rnd, salt;
struct timeval tv;
struct timezone tz;
pid_t pid;
static int counter = 0, use_urandom = 0;
int i, ret, fd;
@@ -2404,7 +2403,7 @@ fallback:;
per day.
*/
memcpy(u, uuid_template, 16);
gettimeofday(&tv, &tz);
gettimeofday(&tv, NULL);
for (i = 0; i < 4; i++)
u[i] = (salt >> (8 * i)) & 0xff;
for (i = 0; i < 2; i++)