On Mar 24, 2021, Jonathan Wakely <jwak...@redhat.com> wrote: > Does vxworks provide any platform-specific source of randomness, like > Linux getrandom(2) or BSD arc4random(3) or Windows rand_s? If yes, we > should add support for that (in the next stage 1).
There appears to be a randNumGenCtl syscall that appears to be relevant to that end, and randAdd to seed and randBytes to obtain random bytes in vxRandLib. I couldn't find documentation on how to use it, but there seems to be some code using it in openssl. Sorry, I don't know a lot about vxworks. -- Alexandre Oliva, happy hacker https://FSFLA.org/blogs/lxo/ Free Software Activist GNU Toolchain Engineer Vim, Vi, Voltei pro Emacs -- GNUlius Caesar