I have a function in my program, which is declared as the following:
int32_t seed_krand(int32_t* seed)
{
*seed = (*seed * 1664525ul) + 221297ul;
return ((uint32_t)*seed) >> 16;
}
As you can see, it takes a seed, cycles it, and then returns the result shifted right.
I need to be able to feed it a variable as a seed in angelscript, and have the cycled seed spit back into it, but I can't seem to make an argument of type int32 &inout. So, how would I set this up? I've read in the documentation it only works with reference types, but I don't know how to set it up in this context, would someone be able to help me?