I read that cryprographic secure PRNG (CSPRNG) need a random seed to provide random output. Looking at OpenSSL that seems to be archived by
RAND_poll() and random data is fetched with
But I'm quite not sure if I get everything right that is stated in the documentation here. I know that
RAND_bytes will call
RAND_poll() itself if it was not called before at least once.
I also read (somewhere else) that a seed should not be reused for a CSPRNG. Now my question is: Does
RAND_bytes reuse any seed? Do I have to manually reseed OpenSSL for distinct
RAND_bytes calls by using
RAND_bytes(buf, length) again and again if i do not want reuse the seed?
RAND_bytes manage this by itself?