Added random commitment generator for testing