diff options
| author | Stefan Eßer <se@FreeBSD.org> | 2020-07-07 07:02:33 +0000 | 
|---|---|---|
| committer | Stefan Eßer <se@FreeBSD.org> | 2020-07-07 07:02:33 +0000 | 
| commit | 3960d8924a1a0ba2f0f5e8510e73a10ee20d726b (patch) | |
| tree | 068fa33f5b47453a5521c0ff1b2b613ff8a3452c /include/rand.h | |
| parent | 1f958cfad78842ab9a1193471589231e25596cb3 (diff) | |
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 | 
