A uniform of length l is released from rest such that it rotates about a smooth pivot. Find the angular speed of the rod when it becomes vertical.