Created
July 22, 2010 05:10
-
-
Save jonjensen/485595 to your computer and use it in GitHub Desktop.
Script to watch Linux kernel entropy level
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Time::HiRes 'usleep'; | |
while (1) { | |
open my $in, '<', '/proc/sys/kernel/random/entropy_avail' or die; | |
print <$in>; | |
close $in; | |
usleep 100_000; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment