Closed cofyc closed 4 years ago
What if it’s missing because…the syscall is just not there (old kernel)?
What if it’s missing because…the syscall is just not there (old kernel)?
the syscall(SYS_getrandom, ...)
call will fail. (-1
is returned).
If we want dsvpn
to work on old kernels, we need to fall back to other random methods.
fixes #72 Signed-off-by: Yecheng Fu fuyecheng@pingcap.com