How to uninitialize the entropy of /dev/urandom in C?

290 views Asked by At

Is there a way to make that the entropy of /dev/urandom is and stay uninitialized?

My goal is to simulate an initialized or simply uninitialize /dev/urandom. How can I do a such thing?

edit: I see my question has been downvoted. I am sure the person who did has a legitimate reason. I have spent time searching the answer online but I didn't find anything.

1

There are 1 answers

3
too honest for this site On BEST ANSWER

As /dev/random and urandom are vital for security functions, allowing to tamper them would contradict their purpose. But you can add your own driver, or just replace calls to them with dummies (or use named pipes from a dummy for testing) instead.

Note: do not replace the driver on a production system.