diff --git a/en-US/Tasks-Cryptography.xml b/en-US/Tasks-Cryptography.xml index e3b9a1b..5e699c7 100644 --- a/en-US/Tasks-Cryptography.xml +++ b/en-US/Tasks-Cryptography.xml @@ -86,7 +86,7 @@ os.urandom in Python - The getrandom system call + The getrandom system call since glibc 2.25 The getentropy call since glibc 2.25 @@ -122,10 +122,10 @@ return values, hence requires careful error checking. - It was introduced in Linux kernel 3.17, but as of glibc 2.22 no API wrappers are - provided. As such one can only use it via the syscall interface + It was introduced in Linux kernel 3.17, but before glibc 2.25 no API wrappers were + provided. As such one could only use it via the syscall interface as syscall(SYS_getrandom, (void*)dest, (size_t)size, (unsigned int)0). - For portable code targetting older kernel versions one has to check + For portable code targetting multiple kernel versions one has to check for the function being available on run-time, and switch to another facility if the running kernel doesn't support this call.