Use a random key when there is no provided one