Use chacha_random instead of libc's random.
Accept string from stdin.