Code that generate hash for file not working properly

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By madSims

Guys, I need your help.

I’m using the code in this page.
When I run it, I can get different hex strings on the same file.
Why is that? Am I missing something?