3

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?

oink
  • 157
  • 5
  • 1
    What 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 Answers1

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.

forest
  • 64,616
  • 20
  • 206
  • 257