繁体   English   中英

如何加快多个crypto.randomBytes调用

[英]How to speed up multiple crypto.randomBytes calls

我将建立一个使用crypto.randomBytes()的服务。 据我所知,它正在阻止I / O。 有没有办法至少加快这个过程? 多核或多线程能做什么?

这里有一些细节: crypto#randomBytes有多随机?

假设您没有使用Windows crypto.randomBytes()使用/dev/urandom 如果存在性能瓶颈,似乎可以使用/dev/urandom替代方法: https : //serverfault.com/questions/6440/is-there-an-al-alternative-to-dev-urandom

同样不是,/ dev / urandom将无法运行多核: https ://bbs.archlinux.org/viewtopic.php?id =160967

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM