camera-trng/scripts
Leopere 26a6209600
Add auto-update on restart, upgrade script, and camera-only tests
LaunchAgent now uses launch-wrapper.sh which does git pull + cargo build
before exec-ing the binary, so every restart picks up the latest code.
Eliminates the drift where a rebuilt binary doesn't take effect until
the old process is manually killed.

New scripts:
- launch-wrapper.sh: auto-pull, rebuild, exec (used by LaunchAgent)
- upgrade.sh: manual pull, rebuild, restart LaunchAgent

Tests (12 total, all passing):
- Pool camera-only invariants: empty pool returns error (no CSPRNG
  fallback), push/pull round-trip matches exactly, pool empty after
  drain (no synthetic fill), extract_entropy and fill_entropy fail
  without camera data, partial pull is all-or-nothing, stats track
  only camera bytes.
- Conditioning tests: deterministic output, varies with frame index,
  correct SHA-256 output size, 8:1 ratio, LSB masking to 0-3 range.

Refactored pool.rs into pool/mod.rs + pool/tests.rs to stay under
400-line file limit.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-15 11:16:29 -05:00
..
build-release.sh Camera TRNG: webcam-based true random number generator 2026-02-05 15:46:26 -05:00
build-test.sh Add QTRNG tools: quantum dice, password generator, coin flip; build-test script 2026-02-08 16:24:51 -05:00
camera-qrng.plist.in Add auto-update on restart, upgrade script, and camera-only tests 2026-02-15 11:16:29 -05:00
install-launchagent.sh Add auto-update on restart, upgrade script, and camera-only tests 2026-02-15 11:16:29 -05:00
launch-wrapper.sh Add auto-update on restart, upgrade script, and camera-only tests 2026-02-15 11:16:29 -05:00
obs-noise-camera.mjs Camera TRNG: webcam-based true random number generator 2026-02-05 15:46:26 -05:00
package-lock.json Camera TRNG: webcam-based true random number generator 2026-02-05 15:46:26 -05:00
package.json Camera TRNG: webcam-based true random number generator 2026-02-05 15:46:26 -05:00
release-camera.sh Camera TRNG: webcam-based true random number generator 2026-02-05 15:46:26 -05:00
run-mac.sh Polish: camera-only entropy, cleaner output, complete docs 2026-02-15 11:08:13 -05:00
start-obs-noise.sh Add QTRNG tools: quantum dice, password generator, coin flip; build-test script 2026-02-08 16:24:51 -05:00
stop-obs-noise.sh Camera TRNG: webcam-based true random number generator 2026-02-05 15:46:26 -05:00
stream-demo.sh Camera TRNG: webcam-based true random number generator 2026-02-05 15:46:26 -05:00
stream-random.sh Camera TRNG: webcam-based true random number generator 2026-02-05 15:46:26 -05:00
test-openssl-provider.sh Camera TRNG: webcam-based true random number generator 2026-02-05 15:46:26 -05:00
test-randomness.py Camera TRNG: webcam-based true random number generator 2026-02-05 15:46:26 -05:00
uninstall-launchagent.sh Polish: camera-only entropy, cleaner output, complete docs 2026-02-15 11:08:13 -05:00
upgrade.sh Add auto-update on restart, upgrade script, and camera-only tests 2026-02-15 11:16:29 -05:00