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.
18 lines
398 B
18 lines
398 B
#include <rngxx.hpp>
|
|
#include <rngxx/crand.h>
|
|
|
|
#include <rngxx.h>
|
|
|
|
extern "C" {
|
|
//TODO: Make these C++ compiled ones intermediate, so the C interface used here can be used. use internal linkage for the C++ intermediates
|
|
rng_t* rng_new(rng_kind kind, u64 seed[static restrict 1])
|
|
{
|
|
switch(kind)
|
|
{
|
|
case RNG_KIND_CRAND:
|
|
return new rng::crand(seed[0]);
|
|
default: return NULL;
|
|
}
|
|
}
|
|
}
|