Support random streams, to improve efficiency of dauth.random.randomBytes.