As in the question. Wouldn't cat /dev/random
decrease the entropy estimate until it blocks, which forces the random device to block for all applications on the current system?
Asked
Active
Viewed 462 times
3
![](../../users/profiles/79326.webp)
oink
- 157
- 5
-
1What part of this question is not answered by simply reading the extensive [Wikipedia entry for /dev/random](https://en.wikipedia.org/wiki//dev/random)? – Steffen Ullrich Jun 08 '18 at 17:48
1 Answers
4
Yes it would. The blocking random device reads from a single entropy pool and blocks when the entropy estimate goes under a configurable threshold. At this point, any reads from the character device will block, regardless of who is reading. This is just one of many reasons why developers should instead use the non-blocking device or the getrandom()
syscall instead.
![](../../users/profiles/106285.webp)
forest
- 64,616
- 20
- 206
- 257