D522 is a patch for macOS.
longlong part was fixed already in master (to be 1.9.1).
getentropy part should be handled.
Note that we can't directly apply the patch.
See: https://www.gnu.org/software/gnulib/manual/html_node/sys_002frandom_002eh.html
https://bugs.python.org/issue29057