Created
December 12, 2019 13:04
-
-
Save JacquesLucke/a30303ce4c7d9c3242885f4da7b4412d to your computer and use it in GitHub Desktop.
Revisions
-
JacquesLucke created this gist
Dec 12, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ uint a = BLI_rng_get_uint(rng); uint b = 0x3F800000 | (0x007FFFFF & a); float c = *(float *)&b; return c - 1.0f;