//============================================================================
// Name : CakeSalter.cpp
// Author : Anonymous
// Version :
// Copyright : All rights reserved
// Description : CakePHP Salt Value Creator in C++, Ansi-style
//============================================================================
unsigned int r = 0;
unsigned int num_characters = 10;
unsigned int max_num_characters = 40;
unsigned int prefix_length = 0;
char c = ' ';
bool valid = false;
time_t seconds;
time(&seconds);//Get time
srand((unsigned int) seconds);//seed with the time value
string project_name = "";
for (unsigned int i = 0; i < num_characters; i++)
{
while (!valid)
{
r = rand() % 123;//Get a number between 0 and 123
if (((r >= 65) && (r <= 90)) || ((r >= 97) && (r <= 122)) || ((r
>= 48) && (r <= 57)))
{
valid = true;
c = (char) r;
}
else
{
valid = false;
}
}
if (valid)
{
cout << c;
//reset valid to find us a new character
valid=false;
}
}
return 0;
}
your ghey & your coed is ghey bcuz i dont understand it u should use haskell like me so ur life will be better and ur not a fag then dats my constructive critism