Return errors if rand.Read fails.