diff options
| author | J08nY | 2017-04-09 18:19:25 +0200 |
|---|---|---|
| committer | J08nY | 2017-04-09 18:19:25 +0200 |
| commit | 1834586a6850f3c93107271a0351accde78981fd (patch) | |
| tree | 30a7b83ef6e289dda3beede9d5d5a8a3aac197c2 /src/math/random.h | |
| parent | 2c9a14b7323749af884279a564dabd710e089dcc (diff) | |
| download | ecgen-1834586a6850f3c93107271a0351accde78981fd.tar.gz ecgen-1834586a6850f3c93107271a0351accde78981fd.tar.zst ecgen-1834586a6850f3c93107271a0351accde78981fd.zip | |
Added multi-threading support to invalid curve generation
Invalid curve generation now supports multi-threading via pthreads,
use the --threads= option.
- Changed some function params to const, where possible.
- Added *_new_copy, *_clone and *_new_clone functions to
curve_t*, point_t* and point_t**
- Made cfg->bits unsigned long
- Made order_any gcopy the generated order(as it can be a clone and
screw up stuff later)
Diffstat (limited to 'src/math/random.h')
| -rw-r--r-- | src/math/random.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/random.h b/src/math/random.h index 34c5bd5..de03abb 100644 --- a/src/math/random.h +++ b/src/math/random.h @@ -13,8 +13,8 @@ bool random_init(void); -GEN random_prime(long bits); +GEN random_prime(unsigned long bits); -GEN random_int(long bits); +GEN random_int(unsigned long bits); #endif // ECGEN_RANDOM_H |
