getrandom syscall in C not found

前端 未结 5 1552
温柔的废话
温柔的废话 2020-12-17 16:27

The problem was resolved by upgrading the C library.


I would like to use the syscall getrandom (http://man7.org/linux/man-pages/man2/getrandom.2.html)

5条回答
  •  死守一世寂寞
    2020-12-17 17:14

    The getrandom() syscall was introduced in the linux kernel 3.17. Ubuntu 14.04 gets shipped with kernel 3.13, so you have to update to a more recent kernel to get the syscall.

    To get .deb packages of the linux kernel for Ubuntu, have a look at kernel.ubuntu.com. This problem was also discussed at askubuntu.com.

提交回复
热议问题