unify RandomSource usage and introduce BCDigestRandom