groth.lan.cmu.edu, verified & served on ganesha
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.
σ(y,x) (brighter = stronger shot noise; leaks 0 bits of diff signs)/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].
Click any button above to draw fresh physical camera entropy from the blocking pool…
| Suite | Test | Statistic | p-value | [0 … 1] | Verdict | Detail |
|---|---|---|---|---|---|---|
| Waiting for initial verification window (2 KiB minimum, ~30s after startup)… | ||||||
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).
| Endpoint | Parameters | Description |
|---|---|---|
| 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). |
# 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"
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"])