You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shuffle3/lean/include/rng.h

32 lines
516 B

4 years ago
#ifndef _RNG_H
#define _RNG_H
#ifdef __cplusplus
extern "C" {
#endif
// Tests
void frng_test();
void xorng_test();
void drng_test();
4 years ago
void rng_test();
#ifdef __cplusplus
}
// RNG interfaces
#include <rng/frng.hpp>
4 years ago
#include <rng/drng.hpp>
#include <rng/xoroshiro128plus.hpp>
4 years ago
namespace rng {
void test_algo(RNG&& rng);
template<class R,
typename std::enable_if<std::is_base_of<RNG, R>::value>::value __fuck>
inline void test_algo(R&& rng) { test_algo(static_cast<RNG&&>(rng)); }
}
#endif
4 years ago
#endif /* _RNG_H */