id summary reporter owner description type status milestone component version severity resolution keywords cc 7779 uniform_on_sphere returns nan in certain (rare) cases Robert Gantner No-Maintainer "When simulating random vectors using the boost::uniform_on_sphere distribution with single-precision floating-point numbers, certain realizations are a vector of -nan. For the seed used in the included program, this happens at realization 3802480. The realizations before and after the wrong one are correct (i.e. lie on the unit circle). I have only found this to happen in two dimensions, although it happens for many different seed values. I have not encountered the problem when using doubles." Bugs closed To Be Determined random Boost 1.46.1 Problem fixed uniform_on_sphere, random