RFDom
Hardware random number generator using radio frequency noise from RTL-SDR devices.
Overview
RFDom provides a drop-in replacement for Python's random module that generates cryptographically strong random numbers from atmospheric radio noise. It uses an RTL-SDR device to capture IQ samples, converts them to seeds via phase angle analysis and SHA-256 hashing, and feeds these into an LCG for deterministic random number generation.
Requirements
- RTL-SDR device
- RTL-TCP server running (e.g.,
rtl_tcp -a 0.0.0.0) - Python 3.x
Installation
pip install rfdom
Or from source:
git clone https://github.com/douxxtech/rfdom.git
cd rfdom
pip install -e .
Usage
from rfdom import RFDom
# Connect to RTL-TCP server
rng = RFDom(host="192.168.1.185", gain=49.6)
# Use like Python's random module
print(rng.random()) # 0.0 to 1.0 [0.0, 1.0)
print(rng.randint(1, 100)) # Random integer [1, 100]
print(rng.choice(['a', 'b', 'c'])) # Random choice
print(rng.gauss(0, 1)) # Gaussian distribution
Supported Methods
random(),uniform(),randint(),randrange()choice(),choices(),sample(),shuffle()gauss(),expovariate()
License
This project is licensed under the GNU General Public License v3.0. See LICENSE for details.
Release files for rfdom 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rfdom-0.0.2.tar.gz | 24.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rfdom-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 48.7 kB
Release files / rfdom-0.0.2.tar.gz
| Download URL | rfdom-0.0.2.tar.gz |
|---|---|
| Size | 24.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ea7b6ec6fc0844219b8789b9e8b11cab8ab18ebcc795710c2dd97e94d64c29d
|
|
BLAKE2b-256 checksum How to use checksums |
bd8a85fb6bc4fa14225645b032cdc90add6d5a6b4f9a16f8350681b29c5233c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 8, 2026.
Transparency logRelease files / rfdom-0.0.2-py3-none-any.whl
| Download URL | rfdom-0.0.2-py3-none-any.whl |
|---|---|
| Size | 24.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32109172b9ed2429abdd27db416ec9d936bde31a10ac2a4fcf79692b2857ad2d
|
|
BLAKE2b-256 checksum How to use checksums |
2a0d4074306cec5bbad4e8f032d3e0e4e4a764ef5d276da5cb8931bbf7b49e42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 8, 2026.
Transparency log