only srand once.

SVN revision: 80209
This commit is contained in:
Carsten Haitzler 2012-12-05 06:21:41 +00:00
parent de31494ade
commit b000cf12d6
1 changed files with 7 additions and 1 deletions

View File

@ -1764,7 +1764,13 @@ static void
_e_fm_op_random_char(char *buf, size_t len)
{
size_t i;
srand((unsigned int)time(NULL));
static int sranded = 0;
if (!sranded)
{
srand((unsigned int)time(NULL));
sranded = 1;
}
for (i = 0; i < len; i++)
{