random string
#1

Hi,

Код:
stock randomString(strDest[], strLen = 10)
{
	while(strLen--)
	{
	    new nntte = random(3);

	    if( nntte == 0 )
	    {
	        nntte = random(26) + 'A';
	    }
	    else if( nntte == 1 )
	    {
	        nntte = random(26) + 'A';
	    }
	    else if( nntte == 2 )
	    {
	        nntte = arraygf[random(sizeof(arraygf))] + '0';
	    }
		strDest[strLen] = nntte;
	}
}
With this function i create random string, and i write it in mysql database i need to escape it?
Reply


Messages In This Thread
random string - by Bussyman - 04.09.2017, 18:58
Re: random string - by Vince - 04.09.2017, 19:05
Re: random string - by Bussyman - 04.09.2017, 19:11
Re: random string - by jlalt - 04.09.2017, 19:13
Re: random string - by Paulice - 04.09.2017, 19:24

Forum Jump:


Users browsing this thread: 1 Guest(s)