
Apparently it's the same result.
Your code is not sensible to the rotate ?? the lightning ?? etc ..
What's modification not modify your code ???
In fact i can mixing several methods for be sure to the result.
For exampler, like i say above, the color dominance (image blue or red) + your hash....and perhaps again another idea ??
Like that, it's surely impossible to an image to have exactely the same result in several test ...
Except perhaps an white image with just title like that :

dHash - Compare two differents pictures of extremely different record
-2770167811735213228
2609421560056017481
34
dHash - Compare exactely the same picture of the same record
-2770167811735213228
-2770167811735213228
0
dHash - Compare two differents picture of the same record
-2770167811735213228
-2842226509793678442
13
dHash - Compare the same picture rotating
-2770167811735213228
9173101322984576773
21
dHash - Compare the same picture lightning
-2770167811735213228
-2770167811735213100
1
***************************************
dHash2 - Compare two differents pictures of extremely different record
-2770167811735213228
2609421560056017481
34
dHash2 - Compare exactely the same picture of the same record
-2770167811735213228
-2770167811735213228
0
dHash2 - Compare two differents pictures of the same record
-2770167811735213228
-2842226509793678442
13
dHash2 - Compare the same picture rotating
-2770167811735213228
9173101322984576773
21
dHash2 - Compare the same picture lightning
-2770167811735213228
-2770167811735213100
1