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

Troubleshooting • Entropy does not decrease?

$
0
0
Hi everyone,

I realized that, when using GPG and other programs, the entropy of my Raspberry Pi does not decrease. E.g. running the following script:

Code:

echo "Entropy before: $(cat /proc/sys/kernel/random/entropy_avail)"dd if=/dev/random of=/dev/null bs=1 count=1echo "Entropy after: $(cat /proc/sys/kernel/random/entropy_avail)"
Returns the following output:

Code:

Entropy before: 2561+0 records in1+0 records out1 byte copied, 0.0009906 s, 1.0 kB/sEntropy after: 256
I would expect the second number to be 248 (256 bit - 1 Byte). Can anybody explain why the entropy stays the same?

I am running a Raspberry Pi 4 with Linux raspberrypi 6.1.0-rpi8-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.73-1+rpt1 (2024-01-25) aarch64 GNU/Linux.

Statistics: Posted by Pommespapst — Mon Mar 11, 2024 11:31 pm



Viewing all articles
Browse latest Browse all 3780

Trending Articles