Skip to content

Commit

Permalink
Merge pull request #314 from martinlindhe/condition-always-true
Browse files Browse the repository at this point in the history
part of conditional expression is always true (!done)
  • Loading branch information
akheron committed Oct 24, 2016
2 parents 575f951 + 4467bf2 commit bc5741f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hashtable_seed.c
Expand Up @@ -168,12 +168,12 @@ static uint32_t generate_seed() {
int done = 0;

#if !defined(_WIN32) && defined(USE_URANDOM)
if (!done && seed_from_urandom(&seed) == 0)
if (seed_from_urandom(&seed) == 0)
done = 1;
#endif

#if defined(_WIN32) && defined(USE_WINDOWS_CRYPTOAPI)
if (!done && seed_from_windows_cryptoapi(&seed) == 0)
if (seed_from_windows_cryptoapi(&seed) == 0)
done = 1;
#endif

Expand Down

0 comments on commit bc5741f

Please sign in to comment.