commit 48a7e0dcf119f8f61c7d3a72cea4496b7ebde738
parent c1cc653ba290f2ea19f671c7a895f8d9d46883e5
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Wed, 23 Aug 2017 10:31:39 +0200
Fix aes and threefry min and max in their respective types.
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/ssp_rng.c b/src/ssp_rng.c
@@ -403,8 +403,8 @@ const struct ssp_rng_type ssp_rng_threefry = {
rng_cxx_read<threefry_T>,
rng_cxx_write<threefry_T>,
rng_cxx_entropy<threefry_T>,
- std::numeric_limits<threefry_T::result_type>::min(),
- std::numeric_limits<threefry_T::result_type>::max(),
+ threefry_T::min(),
+ threefry_T::max(),
sizeof(threefry_T),
16
};
@@ -420,8 +420,8 @@ const struct ssp_rng_type ssp_rng_aes = {
rng_cxx_read<aes_T>,
rng_cxx_write<aes_T>,
rng_cxx_entropy<aes_T>,
- std::numeric_limits<aes_T::result_type>::min(),
- std::numeric_limits<aes_T::result_type>::max(),
+ aes_T::min(),
+ aes_T::max(),
sizeof(aes_T),
16
};