Certain characterizations of the uniform distribution