maybe i should make it not hang :)

This commit is contained in:
Daniella / Tove 2024-06-02 04:33:40 +02:00
parent c98ab6de76
commit 3df73ec4f6

View file

@ -44,7 +44,7 @@ public class SecurePRandom extends Random {
}
@Override
public synchronized void nextBytes(byte[] bytes) {
public void nextBytes(byte[] bytes) {
for(int i = 0; i < bytes.length; i += 32) {
System.arraycopy(nextBytes(), 0, bytes, i, Math.min(32, bytes.length));
}