Skip to content

Commit 171298c

Browse files
committed
fixup! feat(Lib): random (not tested)
1 parent ecf5a77 commit 171298c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pylib/Lib/random_impl/proc_others.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ func fromU32sImpl(res: var seq[U8]|string; wordarray: openArray[uint32]){.inline
7272
when PyLittleEndian:
7373
var i = 0
7474
for u32 in wordarray:
75-
unpack u32, result[i], result[i+1], result[i+2], result[i+3]
75+
unpack u32, res[i], res[i+1], res[i+2], res[i+3]
7676
i.inc per
7777
else:
7878
for i in countdown(wordarray.high, 0):
7979
let ii = i * per
80-
unpack wordarray[i], result[ii+3], result[ii+2], result[ii+1], result[ii]
80+
unpack wordarray[i], res[ii+3], res[ii+2], res[ii+1], res[ii]
8181

8282
func fromU32s(res: var seq[U8]; wordarray: openArray[uint32]) =
8383
res = newSeqMayUninit[U8] wordarray.len * bytePerWord

0 commit comments

Comments
 (0)