diff options
Diffstat (limited to 'include/rand.h')
-rw-r--r-- | include/rand.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/rand.h b/include/rand.h index fa17507276fb..3c8aafd62ade 100644 --- a/include/rand.h +++ b/include/rand.h @@ -1,9 +1,9 @@ /* * ***************************************************************************** * - * Copyright (c) 2018-2019 Gavin D. Howard and contributors. + * SPDX-License-Identifier: BSD-2-Clause * - * All rights reserved. + * Copyright (c) 2018-2019 Gavin D. Howard and contributors. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -69,14 +69,16 @@ #ifndef BC_RAND_H #define BC_RAND_H -#if BC_ENABLE_EXTRA_MATH - #include <stdint.h> #include <inttypes.h> #include <vector.h> #include <num.h> +#if BC_ENABLE_EXTRA_MATH + +#if BC_ENABLE_RAND + typedef ulong (*BcRandUlong)(void*); #if BC_LONG_BIT >= 64 @@ -224,6 +226,8 @@ void bc_rand_getRands(BcRNG *r, BcRand *s1, BcRand *s2, BcRand *i1, BcRand *i2); extern const BcRandState bc_rand_multiplier; +#endif // BC_ENABLE_RAND + #endif // BC_ENABLE_EXTRA_MATH #endif // BC_RAND_H |