Both Hayek and Locke thought that this is best achieved by limiting government's potential actions and restricting these potential actions to known general rules applicable to all. Both sought a government of rules rather than commands, the latter of which, by their nature, are not known in advance and may be arbitrary—not applicable to all. Hayek's goal was the society of law.
Hayek's Journey: The Mind of Friedrich Hayek (2003) - Ch. 8 : The Abuse and Decline of Knowledge