made random seed always positive in encrypter

the UL was risky
This commit is contained in:
Václav Šmejkal 2022-06-12 18:32:08 +02:00
parent b23a2e2b22
commit 62b2094d48
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -45,6 +45,7 @@ outputFlags encryptText(char *text, char *keyNew, inputFlags flags)
fread(&numberBuffer, 4, 1, fileBuffer);
srand(numberBuffer);
fclose(fileBuffer);
if (numberBuffer < 0) numberBuffer *= -1; //MAKE numberBuffer POSITIVE
if (keyNew != NULL)
{