]> git.xonotic.org Git - xonotic/darkplaces.git/commit
Added an implementation of Lehmer random number generator with Lecuyer constant,...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 27 Nov 2016 21:45:11 +0000 (21:45 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 7 Mar 2017 19:13:21 +0000 (20:13 +0100)
commitdc9dd23065030119ca49c1d5f4d1e0fe262f406b
tree64d91fe2ad0bdd93615ef7e5fd294848fa64f706
parent753c624e5c4006f307c914116a23316a3e10a1ce
Added an implementation of Lehmer random number generator with Lecuyer constant, this is a simple mul128 based RNG with a period of 2^126.

Use the new RNG for bouncegrid traces to hopefully improve the photon distribution compared to lhcheeserandom.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12298 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=8e10530c0564b56ff02e689d3d6839b8fcb88553
mathlib.c
mathlib.h
r_shadow.c