Files
2026-06-01 12:46:52 +02:00

13 lines
228 B
C

#pragma once
#include <toolkit/XRandom.h>
#include <toolkit/c_encint.h>
struct c_enc_rand_gen
{
static short generate()
{
return short( XFastRandom() % 65536 );
}
};
typedef c_encint< int, short, c_enc_rand_gen > ENC_INT;