Jump to content

Linux: Difference between revisions

13 bytes removed ,  23 February 2021
Line 591: Line 591:
Produces random numbers.
Produces random numbers.


On my system, it's limited to about 50 MB/s. If you need faster, you can encrypt from <code>/dev/zero</code> to get 2.7 GB/s.   
On my system, it's limited to about 60 MB/s. If you need faster, you can encrypt from <code>/dev/zero</code> to get 2.7 GB/s.   
See [https://serverfault.com/questions/6440/is-there-an-alternative-to-dev-urandom/415962#415962 reference].
See [https://serverfault.com/questions/6440/is-there-an-alternative-to-dev-urandom/415962#415962 reference].
<pre>
<pre>
# Using urandom
# Using urandom
dd if=/dev/urandom | pv | dd of=/dev/null
pv < /dev/urandom > /dev/ull


# Using encryption
# Using encryption