/dev/random Extremely Slow?

后端 未结 6 818
情深已故
情深已故 2020-12-01 06:23

Some background info: I was looking to run a script on a Red Hat server to read some data from /dev/random and use the Perl unpack() command to convert it to a hex string fo

6条回答
  •  猫巷女王i
    2020-12-01 06:45

    This fixed it for me. Use new SecureRandom() instead of SecureRandom.getInstanceStrong()

    Some more info can be found here : https://tersesystems.com/blog/2015/12/17/the-right-way-to-use-securerandom/

提交回复
热议问题