The code uses a function that has inconsistent implementations across operating systems and versions.