A java application does something like this:
SecureRandom random = new SecureRandom();
for(int i=0;i<12;i++){
random.nextInt(19);
}
At random.nextInt() the java freezes for several minutes, seems it hangs indefinitely.
The weird part is that the behaviour is present only when I ran it through Jenkins, and I wasn’t able to reproduce the problem locally.
Also in production the code works fine.
The jenkins agent is an Ubuntu, however If I change it to a macOS agent, it works fine.
The production runs on openSUSE.
What's the magic here?