Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5359

Troubleshooting • Re: Entropy does not decrease?

$
0
0
Because the hwrng process is refilling the entropy pool far faster than your command can empty it. Even this doesn't take a chunk out:

Code:

$ echo "Entropy before: $(cat /proc/sys/kernel/random/entropy_avail)" ; dd if=/dev/random of=/dev/null bs=1024 count=9999 ; echo "Entropy after: $(cat /proc/sys/kernel/random/entropy_avail)"Entropy before: 2569999+0 records in9999+0 records out10238976 bytes (10 MB, 9.8 MiB) copied, 0.0589842 s, 174 MB/sEntropy after: 256
Even if it's difficult to deplete the /dev/random entropy pool, it's preferable to get random data from /dev/urandom because it never blocks.

Statistics: Posted by scruss — Tue Mar 12, 2024 1:32 am



Viewing all articles
Browse latest Browse all 5359

Trending Articles