Open raidenluikang opened 1 year ago
For details see https://github.com/briansmith/ring/issues/852
I feel like in this case, because of the inability to determine which version of linux the Android system will run on, should we (like ring) always fall back to /dev/urandom/
if getrandom
fails? Cc @thomwiggers
Android versions < SDK API level 30 are no longer allowed for submission to the Google Play store, so this seems like an update that would not help very many people.
Relatedly, it seems that all supported Linux kernels have getrandom
; of course, there might be some redhat box kicking around though.
Android Os older than Android 9.0 (API_LEVEL = 28) broken syscall(SYS_getrandom).
Please, avoid it when building with NDK. Add something like