fixed encryptText function parameters & renamed 'from' to 'text'

This commit is contained in:
Václav Šmejkal 2022-03-06 15:21:01 +01:00
parent 1d58dc4a4c
commit d310aa25b4
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#ifndef WHY2_ENCRYPTER_H #ifndef WHY2_ENCRYPTER_H
#define WHY2_ENCRYPTER_H #define WHY2_ENCRYPTER_H
char *encryptText(char from[]); //TEXT from WILL BE ENCRYPTED WITH RANDOM PASSWORD (WHICH WILL BE PRINTED OUT) AND RETURNED char *encryptText(char *text); //TEXT from WILL BE ENCRYPTED WITH RANDOM PASSWORD (WHICH WILL BE PRINTED OUT) AND RETURNED
#endif #endif

View File

@ -5,7 +5,7 @@
#define KEY_LENGTH 50 #define KEY_LENGTH 50
char* char*
encryptText(char *from) encryptText(char *text)
{ {
srand(time(0)); //TRY TO MAKE RANDOM GENERATION REALLY "RANDOM" srand(time(0)); //TRY TO MAKE RANDOM GENERATION REALLY "RANDOM"