Merge branch 'main' of https://git.efi.th-nuernberg.de/gitea/gloecknerni100842/I2_Projects
This commit is contained in:
commit
41792a6c82
@ -30,6 +30,7 @@ void fillRestWithRandom(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN],
|
|||||||
// - wordCount -> anzahl an Wörtern
|
// - wordCount -> anzahl an Wörtern
|
||||||
int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen, const char words[][MAX_WORD_LEN], unsigned int wordCount)
|
int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen, const char words[][MAX_WORD_LEN], unsigned int wordCount)
|
||||||
{
|
{
|
||||||
|
srand(time(NULL));
|
||||||
int placedWords = 0;
|
int placedWords = 0;
|
||||||
|
|
||||||
//Feld komplettmit EMPTY_CHAR füllen
|
//Feld komplettmit EMPTY_CHAR füllen
|
||||||
|
|||||||
@ -30,6 +30,7 @@ void fillRestWithRandom(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN],
|
|||||||
// - wordCount -> anzahl an Wörtern
|
// - wordCount -> anzahl an Wörtern
|
||||||
int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen, const char words[][MAX_WORD_LEN], unsigned int wordCount)
|
int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen, const char words[][MAX_WORD_LEN], unsigned int wordCount)
|
||||||
{
|
{
|
||||||
|
srand(time(NULL));
|
||||||
int placedWords = 0;
|
int placedWords = 0;
|
||||||
|
|
||||||
//Feld komplettmit EMPTY_CHAR füllen
|
//Feld komplettmit EMPTY_CHAR füllen
|
||||||
|
|||||||
@ -30,6 +30,7 @@ void fillRestWithRandom(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN],
|
|||||||
// - wordCount -> anzahl an Wörtern
|
// - wordCount -> anzahl an Wörtern
|
||||||
int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen, const char words[][MAX_WORD_LEN], unsigned int wordCount)
|
int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen, const char words[][MAX_WORD_LEN], unsigned int wordCount)
|
||||||
{
|
{
|
||||||
|
srand(time(NULL));
|
||||||
int placedWords = 0;
|
int placedWords = 0;
|
||||||
|
|
||||||
//Feld komplettmit EMPTY_CHAR füllen
|
//Feld komplettmit EMPTY_CHAR füllen
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user