support /dev/[u]random, fixes #2439