12.03.2017, 11:24
Hi'.
Today, I'm facing a weird bug with string. I've a function called GenerateRandomString which is generating a random string. It's working fine. You will what is the problem :
Output :
So.. How can solve this bug and how can be possible that happens ?
Today, I'm facing a weird bug with string. I've a function called GenerateRandomString which is generating a random string. It's working fine. You will what is the problem :
PHP код:
main()
{
#define MAX_TEST 1
new
str[20],
str2[20];
print("[DEBUG] Lower letters");
for(new i; i < MAX_TEST; i++)
{
GenerateRandomString(str);
GenerateRandomString(str2);
printf("%s -> %i", str, sizeof(str));
printf("%s -> %i", str2, sizeof(str2));
}
}
Код:
[12:15:06] [DEBUG] Lettres minuscules [12:15:06] xlmqeyknjmhpsdrcgpfm -> 20 [12:15:06] hczqyymrtkpcrejobxjxxlmqeyknjmhpsdrcgpfm -> 20