We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f75974d commit 1639c4bCopy full SHA for 1639c4b
1 file changed
src/main/java/com/github/stephengold/joltjni/Quat.java
@@ -294,7 +294,7 @@ public static Quat sIdentity() {
294
public static Quat sRandom(RandomNumberEngine engine) {
295
long em = engine.min();
296
float er = (float) (engine.max() - em);
297
- float x0 = (engine.nextInt() - em) / er;
+ float x0 = (engine.nextUnsigned() - em) / er;
298
float r1 = (float) JphMath.sqrt(1f - x0);
299
float r2 = (float) JphMath.sqrt(x0);
300
0 commit comments