I'm translating an R script into Python, however, I found the encoding result is different between Python and R.
In R:
> digest('0003bf82df1e0255a352b89d431a831d_NA', algo='xxhash32')
[1] "d6865d43"
In Python:
>>> xxhash.xxh32('0003bf82df1e0255a352b89d431a831d_NA').hexdigest()
'3c0493fd
They both use the same algo and both with the default seed = 0
. But why is this happening?
Any help would be appreciated!