I need to convert a guid to a large integer.. this is fine, but during testing i have highlighted something that i need explained to me please ;)
If i do the following:
var g = Guid.NewGuid(); // 86736036-6034-43c5-9b85-1c833837dbea
var p = g.ToByteArray();
var x = new BigInteger(p); // -28104782885366703164142972435490971594
but if i do this in python.. i get a different result:
import uuid
x = uuid.UUID('86736036-6034-43c5-9b85-1c833837dbea')
print x
print x.int # 178715616993326703606264498842288774122
can someone with better knowledge of python, and also .net help explain this?