runtimejs / runtime

[not maintained] Lightweight JavaScript library operating system for the cloud
http://runtimejs.org
Apache License 2.0
1.93k stars 127 forks source link

Random API and RNG #81

Closed iefserge closed 8 years ago

iefserge commented 8 years ago

Based on https://github.com/runtimejs/runtime/pull/73 by @ArielAbreu R = @ArielAbreu

Changes:

runtime-tools has new option --virtio-rng that enables virtio random source.

iefserge commented 8 years ago

Interesting, that on my linux machine in KVM getRandomValues outputs like 10 bytes a minute (same for cat /dev/random). I think maybe rename getPseudoRandomValues to getRandomValues because it's going to be used much more frequently.