Skip to content

Commit f72b6bc

Browse files
authored
Use cbor.SortCoreDeterministic for CBOR encoding (#113)
Signed-off-by: qmuntal <qmuntaldiaz@microsoft.com>
1 parent 77e3f9f commit f72b6bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cbor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ func init() {
2828

2929
// init encode mode
3030
encOpts := cbor.EncOptions{
31-
Sort: cbor.SortCanonical, // sort map keys
32-
IndefLength: cbor.IndefLengthForbidden, // no streaming
31+
Sort: cbor.SortCoreDeterministic, // sort map keys
32+
IndefLength: cbor.IndefLengthForbidden, // no streaming
3333
}
3434
encMode, err = encOpts.EncMode()
3535
if err != nil {

0 commit comments

Comments
 (0)