forked from pool/e2fsprogs
14 lines
452 B
Diff
14 lines
452 B
Diff
Index: e2fsprogs-1.40.8/lib/uuid/gen_uuid.c
|
|
===================================================================
|
|
--- e2fsprogs-1.40.8.orig/lib/uuid/gen_uuid.c
|
|
+++ e2fsprogs-1.40.8/lib/uuid/gen_uuid.c
|
|
@@ -316,7 +316,7 @@ static int get_clock(uint32_t *clock_hig
|
|
if ((last.tv_sec == 0) && (last.tv_usec == 0)) {
|
|
get_random_bytes(&clock_seq, sizeof(clock_seq));
|
|
clock_seq &= 0x3FFF;
|
|
- last = tv;
|
|
+ gettimeofday(&last, 0);
|
|
last.tv_sec--;
|
|
}
|
|
|