Kill insecure random number generation

Bad random numbers are in fact **not** better than no random numbers.

Also fixes a problem where when `registerCall` gives an exception we would fail to render a proper error page

cc @PVince81 @DeepDiver1975 @LukasReschke 
Only on systems where `/dev/urandom` is unavailable