ELSEIF
Your brief EB
183 stories from 71 feeds 32 clusters Refreshed 8 minutes ago next pull 13:20

TECH Signal 276

When random.bytes() runs but doesn't work

WHY IT MATTERS

This is a concrete example of how poor commit hygiene and working around build errors in security-critical code can silently downgrade a system's entropy source. Engineers working on embedded or cryptographic systems should verify that hardware RNG paths remain active after configuration changes, since the device still compiled and ran despite the RNG being effectively neutered.

Written by elseif from the cluster below · every claim links back to a source

The three things worth knowing

01

The developer introduced a duplicate definition of pyb_rng_get_obj in a custom rng.c file, which is invalid in C and produced a compiler error.

02

Rather than resolve the duplicate symbol, the developer set MICROPY_HW_ENABLE_RNG to 0, which excluded the entire hardware RNG module and incidentally eliminated the conflicting definition.

03

The offending commits had near-zero comment-to-code ratios—one message was just 'runs' across 1534 lines, another was 'x' across roughly 1000 lines—making the risky changes difficult to audit.

THE CLUSTER

Same story, 1 feed.

ORDERED BY FIRST SEEN
Hacker News When random.bytes() runs but doesn't work Open ↗