Let {X i , i = 1, 2, . . .} be i.i.d. standard gaussian variables. Let S n = X 1 + . . . + X n be the sequence of partial sums andWe show that the distribution of L n , appropriately normalized, converges as n → ∞ to the Gumbel distribution. In some sense, the the random variable L n , being the maximum of n(n + 1)/2 dependent standard gaussian variables, behaves like the maximum of Hn log n independent standard gaussian variables. Here, H ∈ (0, ∞) is some constant. We also prove a version of the above result for the Brownian motion.