GrothRand — Server Room Camera Hardware RNG

True physical randomness harvested from photon shot noise & CMOS readout noise on groth.lan.cmu.edu, verified & served on ganesha
CONNECTING…

How it works: Every few seconds, the FaceTime HD camera on groth.lan.cmu.edu captures a burst of raw uncompressed 10 fps frames of our dim server room; we take spatially separated frame-to-frame double differences to isolate quantum photon shot noise and CMOS readout noise, gate them against NIST SP 800-90B liveness checks, and condition them with BLAKE2b-512 (>6× LSB / >18× symbol oversampling) into a fresh, non-reused blocking pool (live sensor telemetry). Because a cryptographic hash can hide a broken source, a disjoint verification stream (plus expired unserved pool bytes) is continuously tested both pre-hash and post-conditioning against 27 ENT, NIST SP 800-22, Diehard, and NIST SP 800-90B tests alongside a cumulative p-value uniformity meta-test (live test battery & meta-KS). To grab fresh random bits for seeding PRNGs, simulations, or scripts, try the live playground or call the endpoints directly using the API reference and curl / Python examples below.

Blocking Pool

—
Capacity 256 KiB · true non-reused bytes

Harvest Rate

—
Pool + disjoint verifier stream

Diehard + NIST Suite

—
Waiting for rolling buffer…

Served / Harvested

—
0 requests · 0 blocked

Live Camera Sensor Telemetry —

Live camera pixelwise noise heatmap
Live burst pixelwise noise amplitude σ(y,x) (brighter = stronger shot noise; leaks 0 bits of diff signs)
Double-Diff Std (DD)
—
Pre-Hash LSB Min-Entropy
—
Full Symbol Min-Entropy
—
800-90B RCT / APT Gate
—
Autocorr (H / V / T)
—
Raw Zlib-9 / Clipped
—
Healthy / Failed Cycles
—
Oversampling Ratio
—
Recent cycles: double-diff noise σ (blue) & pre-hash LSB min-entropy (green)

Continuous Meta-Verification (Disjoint Stream) —

Independent 32 KiB Runs
0
Total Disjoint Verified
0 B
Meta-KS Uniformity p
—
Rolling Window Size
—
Cumulative p-value distribution across non-overlapping 32 KiB chunks (should look flat on [0, 1])
Zero leakage & always fresh: Serving pool draws freshest-first with a hard 15-minute TTL (bytes older than 15m expire automatically even if the camera goes offline). Unserved bytes that age out or overflow are permanently retired from the API pool into this Diehard/NIST verifier and retained in /data/groth-random-archive/ (30-day rolling archive) for deeper offline studies. Individual p-values should fall in the WEAK band (~1% of the time) by chance; the Meta-KS test checks that p-values stay uniform on [0, 1].

Interactive Blocking Pool Playground Draws real bytes (consumed once)

Click any button above to draw fresh physical camera entropy from the blocking pool…

Live Statistical Test Battery (ENT + NIST SP 800-22 + Diehard + Raw 800-90B) —

Suite Test Statistic p-value [0 … 1] Verdict Detail
Waiting for initial verification window (2 KiB minimum, ~30s after startup)…

API Reference & Usage Examples CORS enabled · Cache-Control: no-store

All endpoints draw strictly non-reused bytes from the true-random blocking FIFO pool (fed at ~215 B/s from uncompressed uyvy422 frames on groth, conditioned via BLAKE2b-512 with >6× LSB / >18× symbol oversampling). If the pool runs dry, requests block in FIFO order up to timeout seconds (default 30, max 120; pass timeout=0 for non-blocking) waiting for fresh camera frames, returning 503 if the timeout expires. If the camera fails any NIST 800-90B health gate (frozen frames, lens covered, excessive clipping), intake halts automatically (fail-closed).

EndpointParametersDescription
GET /random/api/bytes n=32 (1..4096), format=hex|base64|raw, plain=0|1, timeout=30 Draw n true random bytes. format=raw returns raw application/octet-stream; plain=1 returns bare text.
GET /random/api/seed timeout=30 Draw a 256-bit (32-byte) seed formatted as hex, base64, 4×uint64, 8×uint32, and int256 with camera provenance.
GET /random/api/int min=0, max=100, count=1 (1..256), plain=0|1, timeout=30 Unbiased rejection-sampled integers in [min, max] (zero modulo bias).
GET /random/api/float count=1 (1..256), plain=0|1, timeout=30 Uniform IEEE-754 53-bit floats in [0, 1) (7 true random bytes each).
GET /random/api/uuid count=1 (1..64), plain=0|1, timeout=30 RFC 4122 UUIDv4 built from 16 true camera-entropy bytes.
GET /random/api/status — Full JSON telemetry: pool level, camera sensor health, cycle history, and Diehard/NIST/ENT test results.
GET /random/api/noise.png — Live 160×120 PNG heatmap of pixelwise sensor noise amplitude σ(y,x).
Shell / curl examples
# 32 raw bytes directly into a file or pipe
curl -sS "BASE/api/bytes?n=32&format=raw" | xxd

# Plain 256-bit hex seed (blocks up to 60s if pool is empty)
curl -sS "BASE/api/bytes?n=32&format=hex&plain=1&timeout=60"

# Unbiased random integer in [1, 1000]
curl -sS "BASE/api/int?min=1&max=1000&plain=1"

# Non-blocking check (503 immediately if < 64 bytes available)
curl -i "BASE/api/bytes?n=64&timeout=0"
Python — seed a PRNG / NumPy RNG from the server room
import json, random, urllib.request
import numpy as np

url = "BASE/api/seed"
seed = json.loads(urllib.request.urlopen(url, timeout=35).read())

# Seed Python's stdlib random or NumPy's PCG64 generator
py_rng = random.Random(int(seed["int256"]))
np_rng = np.random.default_rng(seed["uint64"])

print("Seeded from cycle:", seed["latest_camera_seq"],
      "verifier:", seed["verifier_status"])