Skip to content
Snippets Groups Projects
Commit 02cf82f0 authored by tanguy.cavagna's avatar tanguy.cavagna :desktop:
Browse files

Change random seed location

parent 738d08fb
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,6 @@ int bank_count = 0;
*
*/
void init_bank() {
srand(clock());
bank_file = fopen(BANK_PATH, "r");
if (bank_file == NULL) {
......@@ -116,6 +115,7 @@ int count_words() {
char *get_random_word() {
if (bank == NULL) {
srand(clock());
init_bank();
load_bank();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment