Skip to content

Commit

Permalink
Back-fill temporary array while copying to ByteArray
Browse files Browse the repository at this point in the history
  • Loading branch information
05nelsonm committed Mar 19, 2024
1 parent 744c466 commit 515320d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ public actual class SecureRandom public actual constructor() {
}

for (i in indices) {
this[i] = (ptr + i).loadByte()
val point = ptr.plus(i)
this[i] = point.loadByte()
point.storeByte(0)
}
}
}
Expand Down

0 comments on commit 515320d

Please sign in to comment.