Skip to content

Commit 250fc5e

Browse files
committed
hydra::squares{3,4}
1 parent 2dbb56d commit 250fc5e

File tree

5 files changed

+25423
-1
lines changed

5 files changed

+25423
-1
lines changed

hydra/Random.h

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
#include <hydra/detail/random/philox.h>
4444
#include <hydra/detail/random/threefry.h>
4545
#include <hydra/detail/random/ars.h>
46+
#include <hydra/detail/random/squares3.h>
47+
#include <hydra/detail/random/squares4.h>
4648

4749
#include <hydra/Range.h>
4850

@@ -69,9 +71,11 @@ namespace hydra{
6971
*/
7072

7173
//typedef hydra_thrust::random::default_random_engine default_random_engine;
72-
typedef hydra::random::philox default_random_engine;
74+
//typedef hydra::random::philox default_random_engine;
7375
//typedef hydra::random::threefry default_random_engine;
7476
//typedef hydra::random::ars default_random_engine;
77+
typedef hydra::random::squares3 default_random_engine;
78+
//typedef hydra::random::squares4 default_random_engine;
7579

7680
/*! \typedef minstd_rand0
7781
* \brief A random number engine with predefined parameters which implements a version of
@@ -136,6 +140,22 @@ to save time and space..
136140
*/
137141
typedef hydra::random::ars ars;
138142

143+
/*! \typedef squares3
144+
* \brief Ars uses the crypotgraphic AES round function, but a @b non-cryptographc key schedule
145+
to save time and space..
146+
*
147+
*/
148+
typedef hydra::random::squares3 squares3;
149+
150+
/*! \typedef squares4
151+
* \brief Ars uses the crypotgraphic AES round function, but a @b non-cryptographc key schedule
152+
to save time and space..
153+
*
154+
*/
155+
typedef hydra::random::squares4 squares4;
156+
157+
158+
139159
namespace detail {
140160

141161
namespace random {

0 commit comments

Comments
 (0)