Commit 4d0e2db 1 parent 8c13521 commit 4d0e2db Copy full SHA for 4d0e2db
File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " ato-cli"
3
- version = " 1.2.2 "
3
+ version = " 1.2.3 "
4
4
edition = " 2021"
5
5
6
6
[dependencies ]
Original file line number Diff line number Diff line change @@ -42,6 +42,6 @@ impl Data {
42
42
let lh: u128 = u128:: from_str_radix ( & _lh, 16 ) . unwrap ( ) ;
43
43
let rh: u128 = u128:: from_str_radix ( & _rh, 16 ) . unwrap ( ) ;
44
44
45
- format ! ( "{:x }" , lh+rh)
45
+ format ! ( "{:032x }" , lh+rh)
46
46
}
47
47
}
Original file line number Diff line number Diff line change
1
+ x1 = "8dcbafa1779616565ad430bc834b9389"
2
+ x2 = "7b2d78d14c26df82827bd98d057a78cd"
3
+ val = "08f92872c3bcf5d8dd500a4988c60c56"
4
+
5
+ c1 = int (x1 , 16 )
6
+ c2 = int (x2 , 16 )
7
+ c = (c1 + c2 ) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
8
+
9
+ z = format (c , '032x' )
10
+ print (z )
You can’t perform that action at this time.
0 commit comments