Skip to content

Commit a24e443

Browse files
author
Robert Quander
committed
some minor updates, and a new checker version.
1 parent 52d9e6f commit a24e443

File tree

3 files changed

+202
-158
lines changed

3 files changed

+202
-158
lines changed

checker/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM python:3.9-buster
1+
FROM python:3.13.5-slim-bookworm
2+
23
RUN apt-get update && apt-get upgrade -y
34

45
# add checker user

service/Sources/App/Models/PostIDGenerator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ enum PostIDGenerator {
1919
var left = Array(profileID.uuidString.utf8.prefix(32))
2020
while left.count < 32 { left.append(0) }
2121

22-
let right = String(format: "%032llu", combinedNoise)
22+
let right = String(format: "%016llx", combinedNoise).padding(toLength: 32, withPad: "0", startingAt: 0)
2323
let center = Array(right.utf8.prefix(32))
2424

2525
let combined = zip(left, center).map { $0 ^ $1 }

0 commit comments

Comments
 (0)