Skip to content

Commit 9800b77

Browse files
codexzxch3n
authored andcommitted
docs: fix encoding spec inaccuracies
1 parent 128b466 commit 9800b77

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/encoding-xxhash32.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,19 +134,19 @@ xxHash32(new Uint8Array([]), 0) === 0x02CC5D05 // 46947589
134134
const LORO_SEED = 0x4F524F4C;
135135

136136
// Empty with LORO seed
137-
xxHash32(new Uint8Array([]), LORO_SEED) === 0xDC3BF95A // 3694230874
137+
xxHash32(new Uint8Array([]), LORO_SEED) === 0xDC3BF95A // 3694917978
138138

139139
// Single byte
140-
xxHash32(new Uint8Array([0x00]), LORO_SEED) === 0xDAD9F666 // 3672012390
140+
xxHash32(new Uint8Array([0x00]), LORO_SEED) === 0xDAD9F666 // 3671717478
141141

142142
// "loro" (4 bytes)
143-
xxHash32(new Uint8Array([0x6C, 0x6F, 0x72, 0x6F]), LORO_SEED) === 0x74D321EA // 1959690730
143+
xxHash32(new Uint8Array([0x6C, 0x6F, 0x72, 0x6F]), LORO_SEED) === 0x74D321EA // 1959993834
144144

145145
// 16 bytes (triggers block processing)
146146
xxHash32(new Uint8Array([
147147
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
148148
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
149-
]), LORO_SEED) === 0x2EDAB25F // 787026527
149+
]), LORO_SEED) === 0x2EDAB25F // 786084447
150150
```
151151

152152
## Usage in Loro Checksum Verification

0 commit comments

Comments
 (0)