n-y-z-o / nyzoVerifier

Verifier for the Nyzo cryptocurrency
The Unlicense
73 stars 42 forks source link

can't run nyzoVerifier #4

Closed viteshan closed 5 years ago

viteshan commented 5 years ago

I try to run nyzoVerifier by 'java -jar -Xmx3G xxx/nyzoVerifier/build/libs/nyzoVerifier-1.0.jar', but it seems that nothing happened.

and i try to analyze what it happened by "jstack -l pid"

and i get the result, it seems to be blocking when generating the private key.

"main" #1 prio=5 os_prio=0 tid=0x00007f528804b800 nid=0x307f runnable [0x00007f528ee05000] java.lang.Thread.State: RUNNABLE at java.io.FileInputStream.readBytes(Native Method) at java.io.FileInputStream.read(FileInputStream.java:255) at sun.security.provider.NativePRNG$RandomIO.readFully(NativePRNG.java:424) at sun.security.provider.NativePRNG$RandomIO.getMixRandom(NativePRNG.java:404)

viteshan commented 5 years ago

I found the reason, the process can't get random numbers by /dev/random. And this command(cat /dev/random | head -n 10 | od -x) verifies my guess. the solution:

sudo systemctl start haveged sudo systemctl enable haveged