We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43f425e commit 59b4ae1Copy full SHA for 59b4ae1
Sources/Random.swift
@@ -128,7 +128,7 @@ public class Random {
128
guard needed <= bytes.count else { throw EntropyStringError.tooFewBytes }
129
130
let chunks = count / Int(charSet.charsPerChunk)
131
- let partials = UInt8(count) % charSet.charsPerChunk
+ let partials = UInt8(count % Int(charSet.charsPerChunk))
132
133
var string = ""
134
for chunk in 0 ..< chunks {
0 commit comments