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 5647f6e + 2fb07fd commit 0e9eeecCopy full SHA for 0e9eeec
src/util/rand.c
@@ -76,10 +76,10 @@ GIT_INLINE(int) getseed(uint64_t *seed)
76
GIT_INLINE(int) getseed(uint64_t *seed)
77
{
78
struct timeval tv;
79
- double loadavg[3];
80
int fd;
81
82
# if defined(GIT_RAND_GETLOADAVG)
+ double loadavg[3];
83
bits convert;
84
# endif
85
@@ -125,8 +125,6 @@ GIT_INLINE(int) getseed(uint64_t *seed)
125
convert.f = loadavg[0]; *seed ^= (convert.d >> 36);
126
convert.f = loadavg[1]; *seed ^= (convert.d);
127
convert.f = loadavg[2]; *seed ^= (convert.d >> 16);
128
-# else
129
- GIT_UNUSED(loadavg[0]);
130
131
132
*seed ^= git_time_monotonic();
0 commit comments