![](/img/trans.png)
[英]How to use async/await using crypto.randomBytes in nodejs?
[英]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.