4 ms·
/dev/urandom is not part of POSIX. POSIX only defined/dev/null, /dev/tty and /dev/console https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap10.ht
by ReleaseCandidat 5y ago
/dev/urandom is not part of POSIX.
POSIX only defined/dev/null, /dev/tty and /dev/console
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap10.html https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1...
But uuencode exists in the POSIX standard.
https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/utilities/uuencode.html https://pubs.opengroup.org/onlinepubs/9699919799.2018edition...
- marcan_42 5y agoTrue, but it's also not GNU anything. Most modern UNIX-like kernels implement some form of /dev/urandom or /dev/random. The actual shell tools used are POSIX. I don't think POSIX even defines any functions/system calls for getting cryptographically secure random numbers, so if you're literally restricting yourself to POSIX constructs, then indeed what OP asks for is impossible :)