diff options
Diffstat (limited to 'hwrand.py')
-rwxr-xr-x | hwrand.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/hwrand.py b/hwrand.py deleted file mode 100755 index 92016a1..0000000 --- a/hwrand.py +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env python -import fcntl, select, struct -with open('/dev/hwrng', 'rb') as hw, open('/dev/random') as rnd: - while True: - d = hw.read(512) - fcntl.ioctl(rnd, 0x40085203, struct.pack('ii', 4 * len(d), len(d)) + d) - select.select([], [rnd], []) |