We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fea3ed commit 4c1b25eCopy full SHA for 4c1b25e
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/random/PRandom.java
@@ -55,10 +55,11 @@ long getSeed() {
55
}
56
57
58
- private PythonRandom javaRandom = new PythonRandom();
+ private PythonRandom javaRandom;
59
60
public PRandom(PythonClass cls) {
61
super(cls);
62
+ resetJavaRandom();
63
64
65
@TruffleBoundary
@@ -83,6 +84,7 @@ public Random getJavaRandom() {
83
84
return javaRandom;
85
86
87
+ @TruffleBoundary
88
public void resetJavaRandom() {
89
javaRandom = new PythonRandom();
90
0 commit comments