emu should use the host OS's RNG for /dev/random

Issue #354 new
Former user created an issue

Most host OSes have good RNGs with better entropy sources than Inferno can access, including dedicated hardware noise generators. Inferno should not use its beating-clocks generator when running hosted.

A patch to use the host system RNG on Nt is attached, mostly because I'll lose it if I don't upload it. This patch should not be applied upstream on its own, as it will break building for all other hosts until random.c is reimplemented for POSIX and Plan 9 systems as well.

Comments (0)

  1. Log in to comment