[tor-commits] [tor/master] Handle edge cases in laplace functions