Add in conditional addition of randombytes

If we need it, add a function definition for the randombytes function.
This should fix building on travis.