properly seed apr's PRNG with random bytes