when linking libc, expose libc version in builtin import, and only call c functions in std library when linking libc whose version is known to have the function #397
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
Milestone
getRandomBytes
usesgetrandom
from libc. This however is fairly new, requiring the2.25
version of glibc to compiler. If not present, this will cause a link error.https://github.com/andrewrk/tetris fails to compile for example using an older glibc
2.23
.We could just use the syscall directly which would stop this glibc requirement. A fallback to /dev/urandom would probably be good as well. Would need to check some other source for a good set of fallback procedures.
The text was updated successfully, but these errors were encountered: