drivers/char/hw_random

Hardware Random Number Generator (hwrng) subsystem and drivers

A collection of drivers for hardware random number generators built into CPUs, chipsets, embedded SoCs, TPM-like security blocks, and virtual machine paravirtual devices. They feed entropy to the kernel and expose /dev/hwrng for userspace, covering everything from Intel and AMD CPU RNGs to ARM SoC TRNGs from Mediatek, Renesas, TI, and others, plus the virtio-rng device used by QEMU/KVM guests.

keep conf=0.95 deploy=high replacement=none subsystem=char category=crypto
95%

recommendation

It should stay because this is an actively maintained umbrella subsystem rather than a single legacy driver, and hardware RNGs remain essential for both new embedded SoCs and virtual machines. Recent 2026 patch traffic adds support for current Mediatek and Renesas RZ/N1D parts and fixes virtio-rng for guests, showing healthy upstream development. Effectively every modern Linux deployment, from phones to cloud VMs, depends on something in this directory for entropy.

repository signals

53 files
12,581 source lines
258 commits, 5y
+4,182 / −1,657 lines added / removed, 5y
96 authors, 5y
monthly commits · 2021-04-21 → 2026-04-21 · 258 total · active in 55/61 months
2021 2022 2023 2024 2025 2026 2021-04: 1 commit · +1 −1 2021-05: 12 commits · +56 −62 2021-06: 0 commits · +0 −0 2021-07: 2 commits · +154 −16 2021-08: 1 commit · +6 −6 2021-09: 3 commits · +11 −7 2021-10: 7 commits · +279 −62 2021-11: 2 commits · +1 −172 2021-12: 1 commit · +193 −0 2022-01: 7 commits · +20 −8 2022-02: 14 commits · +217 −113 2022-03: 1 commit · +2 −2 2022-04: 7 commits · +139 −18 2022-05: 1 commit · +1 −1 2022-06: 2 commits · +3 −8 2022-07: 6 commits · +19 −17 2022-08: 5 commits · +17 −40 2022-09: 2 commits · +20 −30 2022-10: 6 commits · +12 −7 2022-11: 3 commits · +11 −20 2022-12: 2 commits · +41 −13 2023-01: 2 commits · +406 −2 2023-02: 6 commits · +18 −61 2023-03: 1 commit · +1 −1 2023-04: 2 commits · +193 −6 2023-05: 7 commits · +81 −31 2023-06: 4 commits · +8 −29 2023-07: 28 commits · +133 −287 2023-08: 13 commits · +36 −30 2023-09: 13 commits · +542 −113 2023-10: 2 commits · +4 −8 2023-11: 2 commits · +3 −7 2023-12: 16 commits · +55 −66 2024-01: 0 commits · +0 −0 2024-02: 2 commits · +3 −5 2024-03: 3 commits · +6 −6 2024-04: 4 commits · +15 −4 2024-05: 5 commits · +24 −64 2024-06: 9 commits · +184 −63 2024-07: 3 commits · +245 −12 2024-08: 6 commits · +17 −23 2024-09: 2 commits · +10 −3 2024-10: 5 commits · +327 −32 2024-11: 2 commits · +140 −1 2024-12: 0 commits · +0 −0 2025-01: 2 commits · +5 −5 2025-02: 6 commits · +282 −53 2025-03: 1 commit · +2 −2 2025-04: 5 commits · +90 −14 2025-05: 1 commit · +1 −1 2025-06: 1 commit · +3 −1 2025-07: 3 commits · +2 −10 2025-08: 2 commits · +2 −2 2025-09: 2 commits · +10 −3 2025-10: 0 commits · +0 −0 2025-11: 4 commits · +5 −11 2025-12: 3 commits · +9 −20 2026-01: 3 commits · +107 −67 2026-02: 2 commits · +8 −8 2026-03: 0 commits · +0 −0 2026-04: 0 commits · +0 −0

sources

  1. lore.kernel.org

    April 2026 feature work adds Mediatek hwrng support via SMCCC, showing active upstream development for current SoCs.

  2. lore.kernel.org

    April 2026 virtio-rng bugfix traffic shows the subsystem is still maintained for virtualized deployments.

  3. lore.kernel.org

    March 2026 enablement for Renesas RZ/N1D through the omap hwrng path indicates continuing use on shipping embedded platforms.

  4. kernel.org

    The Linux hw_random framework exposes /dev/hwrng and supports multiple hardware-specific RNG drivers through one core subsystem.

  5. qemu.org

    QEMU recommends virtio devices for virtual machines, supporting the case that virtio-rng remains relevant in new VM deployments.

codex reasoning notes (technical)

Recommendation is keep: this directory is an active umbrella subsystem, not a dead single-chip driver. Local Kconfig inspection shows many current and legacy backends plus virtio/optee/platform drivers. Lore evidence was gathered with lore_regex on patch diffs for drivers/char/hw_random and shows fresh 2026 feature and bugfix traffic; no removal evidence was found, and an attempted lei query for removal/deprecation discussion failed due local sandboxed lei socket startup. Kernel hw_random and QEMU virtio URLs were obtained via web search. Deployment remains high because new embedded SoCs and VMs still need hardware/para-virtual RNG support.