We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9df8c0a + 7444e7e commit 281aa0fCopy full SHA for 281aa0f
uuid/uuid.c
@@ -57,7 +57,7 @@ static inline void read_random(void *buffer, u_int numBytes) {
57
static inline void nanotime(struct timespec *tv) {
58
uint64_t now = mach_absolute_time();
59
tv->tv_sec = now / 1000000000;
60
- tv->tv_nsec = (tv->tv_sec * 10000000000) - now;
+ tv->tv_nsec = now - (tv->tv_sec * 1000000000);
61
}
62
63
#elif TARGET_OS_LINUX
0 commit comments