Random matrices, large deviations and reflected Brownian motion