Abstract
The density functional theory is applied to the freezing of the hard-sphere fluid into a dense-random-packed glass configuration. It is shown that the relative thermodynamic stability of the fluid, glass and crystal phases is completely determined by only two structural features: the number of nearest neighbours and the density of close packing.