Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

Is there a way to monitor /dev/random?

Solution 1:

Sure! Ask /proc/sys/kernel/random/entropy_avail.

Solution 2:

as read someplace else... each new process get entropy from /dev/random

a simple way to avoid stealing the pool is a program, such as:

#!/usr/bin/env python

import time

while True:
    with open('/proc/sys/kernel/random/entropy_avail', 'r') as f:
        print(f.read().rstrip())
    time.sleep(1.0)

Tags:

Linux

Redhat

Jdbc

Random Number Generator

Related

Forcing Nginx to send Content-Length headers when serving static files with gzip calculating days until disk is full Identify Windows 2012 Server core How do I list all connected Salt Stack minions? How to cleanup after failed rsync? Third-party SSD solutions in ProLiant Gen8 servers NetworkManager is not changing /etc/resolv.conf after openvpn dns push Device /dev/sdb1 not found (or ignored by filtering) How to prevent gpg from creating .gnupg directory in user's home directory Is it possible to on-line shrink a EXT4 volume with LVM? How to change rc.d startup order in FreeBSD? Why does OpenStack distinguish images from snapshots?

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy