g-truc / glm

OpenGL Mathematics (GLM)
https://glm.g-truc.net
Other
9.1k stars 2.12k forks source link

gaussRand #1219

Open gottfriedleibniz opened 7 months ago

gottfriedleibniz commented 7 months ago

Per https://github.com/g-truc/glm/pull/1115#issuecomment-1857655067, the implementation looks to be multiplying by variance instead of stddev (source).

Since this method computes two random values at a time, I am wondering whether this library should also handle this inefficiency in some thread-safe or user-defined way. For example, microsoft/STL includes a defaulted "keep" argument.