Browse Source

Revert "Revert "Update random_pcg.h""

This reverts commit 6f704c338aa7448a65ced554804ae568063f35eb.

Sorry about this, this was a test and not meant to be pushed to master. :/
Rémi Verschelde 6 năm trước cách đây
mục cha
commit
a0581cca1f
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      core/math/random_pcg.h

+ 2 - 2
core/math/random_pcg.h

@@ -50,8 +50,8 @@ public:
 
 
 	void randomize();
 	void randomize();
 	_FORCE_INLINE_ uint32_t rand() { return pcg32_random_r(&pcg); }
 	_FORCE_INLINE_ uint32_t rand() { return pcg32_random_r(&pcg); }
-	_FORCE_INLINE_ double randf() { return (double)rand() / (double)RANDOM_MAX; }
-	_FORCE_INLINE_ float randd() { return (float)rand() / (float)RANDOM_MAX; }
+	_FORCE_INLINE_ double randd() { return (double)rand() / (double)RANDOM_MAX; }
+	_FORCE_INLINE_ float randf() { return (float)rand() / (float)RANDOM_MAX; }
 
 
 	double random(double from, double to);
 	double random(double from, double to);
 	float random(float from, float to);
 	float random(float from, float to);