diff options
| author | J08nY | 2017-02-16 21:31:50 +0100 |
|---|---|---|
| committer | J08nY | 2017-02-16 21:31:50 +0100 |
| commit | 7ae0d913d7bbfb286aaa9a5c9984e9bd7eb81df2 (patch) | |
| tree | b0f2d97310b9d0a3e4ba2e0a1cfbcf31d608383e /src/math/random.c | |
| parent | 5d9d12811441930169b0517318dcf21c51b72e2d (diff) | |
| download | ecgen-7ae0d913d7bbfb286aaa9a5c9984e9bd7eb81df2.tar.gz ecgen-7ae0d913d7bbfb286aaa9a5c9984e9bd7eb81df2.tar.zst ecgen-7ae0d913d7bbfb286aaa9a5c9984e9bd7eb81df2.zip | |
Diffstat (limited to 'src/math/random.c')
| -rw-r--r-- | src/math/random.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/math/random.c b/src/math/random.c index 44bdb27..94197fe 100644 --- a/src/math/random.c +++ b/src/math/random.c @@ -2,6 +2,7 @@ * ecgen, tool for generating Elliptic curve domain parameters * Copyright (C) 2017 J08nY */ +#define _POSIX_C_SOURCE 200809L #include "random.h" #include <time.h> @@ -57,4 +58,4 @@ GEN random_int(long bits) { gel(range, 2) = powis(gen_2, bits); return gerepilecopy(ltop, genrand(range)); -}
\ No newline at end of file +} |
