For such a small amount of code it is surprisingly buggy... See if you spot all the bugs; it does compile.
class randomNumber
{
Seeder seeder;
Boolean created = false;
int seed = 0;
public randomNumber(int seed)
{
this.seed = seed;
}
public randomNumber()
{
if (created == true)
seed = DateTime.Now.Second / seeder.getSeed();
else
{
created = true;
Random number = new Random();
seeder = new Seeder(number.Next(0, 9999));
seed = DateTime.Now.Second / seeder.getSeed();
}
}public KeyPair GenerateKeyPair()
{
if (seed == 0)
randomNumber();
return KeyGenerator.CreateKeyPair(seed);
}
}
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.