Add PRNG and use it instead of rand()

This commit is contained in:
Yury Popov
2022-11-15 09:58:29 +03:00
parent 98dc5c67e9
commit 1e279d3cb8
5 changed files with 23 additions and 6 deletions
+3
View File
@@ -404,6 +404,9 @@ ESPEAK_NG_API espeak_ng_STATUS espeak_ng_Initialize(espeak_ng_ERROR_CONTEXT *con
option_phonemes = 0;
option_phoneme_events = 0;
// Seed random generator
espeak_srand(time(NULL));
return ENS_OK;
}