瀏覽代碼

Fix RANDOM_MAX, which is 2^32-1 with PCG32.

Leandro Motta Barros 8 年之前
父節點
當前提交
0e5863c86a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/math/math_funcs.h

+ 1 - 1
core/math/math_funcs.h

@@ -50,7 +50,7 @@ public:
 	Math() {} // useless to instance
 
 	enum {
-		RANDOM_MAX=2147483647L
+		RANDOM_MAX=4294967295L
 	};