Seed the secure random number generator if needed, and return 0 on
success or -1 on failure.
It is okay to call this function more than once; it will still return
0 if the RNG has been successfully seeded and -1 if it can't be
seeded.
Ordinarily you don't need to call this function from your own code;
Libevent will seed the RNG itself the first time it needs good random
numbers. You only need to call it if (a) you want to double-check
that one of the seeding methods did succeed, or (b) you plan to drop
the capability to seed (by chrooting, or dropping capabilities, or
whatever), and you want to make sure that seeding happens before your
program loses the ability to do it.
Seed the secure random number generator if needed, and return 0 on success or -1 on failure.
It is okay to call this function more than once; it will still return 0 if the RNG has been successfully seeded and -1 if it can't be seeded.
Ordinarily you don't need to call this function from your own code; Libevent will seed the RNG itself the first time it needs good random numbers. You only need to call it if (a) you want to double-check that one of the seeding methods did succeed, or (b) you plan to drop the capability to seed (by chrooting, or dropping capabilities, or whatever), and you want to make sure that seeding happens before your program loses the ability to do it.