Fix for bit-for-bit reproducibility from Rimvydas Jasin, Quincey Koziol