forked from enlightenment/enlightenment
parent
de31494ade
commit
b000cf12d6
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue