Skip to content

Commit

Permalink
Don't compile pcgrandom on Windows
Browse files Browse the repository at this point in the history
There it isn't needed.
  • Loading branch information
est31 committed Nov 8, 2015
1 parent f9e394a commit 337c02c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/srp.cpp
Expand Up @@ -496,6 +496,7 @@ static void calculate_H_AMK(SRP_HashAlgorithm alg, unsigned char *dest, const mp
hash_final(alg, &ctx, dest);
}

#ifndef WIN32

struct srp_pcgrandom {
unsigned long long int m_state;
Expand All @@ -521,7 +522,7 @@ static void srp_pcgrandom_seed(srp_pcgrandom *r, unsigned long long int state,
r->m_state += state;
srp_pcgrandom_next(r);
}

#endif

static SRP_Result fill_buff()
{
Expand Down

0 comments on commit 337c02c

Please sign in to comment.