I have not compiled this just looking for advice:
Code:
unsigned functionFoo()
{
unsigned fooNum = 0;
//...
return fooNum;
}
void functionBar(unsigned long myNum)
{
//..
}
int main()
{
unsigned num = functionFoo();
functionBar(num);
return 0;
}
So is this safe? Its is for a random number generator, so i would like to be sure everything is tickety-boo, it's using Prelude's mersenne twister implementation, the seed function takes the unsigned long int, but prior to that i am using a seperate time_t hash function that returns the unsigned int