Check.bytes.go: def of bend-osdev-cbc@0.1.0.0 Import: import bend-osdev-cbc@0.1.0.0/check.bend as Check Lines 50-57 of bend-osdev-cbc@0.1.0.0/check.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-cbc@0.1.0.0/check.bend&start_line=50&end_line=57 import Base # n pseudo-random bytes (a linear congruential generator) def bytes.go(n: Nat, +s: U32, acc: List<&2, U32>) -> List<&2, U32>: match n: case 0n: acc case 1n+p: +s2 = U32.add(U32.mul(s, 1103515245), 12345) bytes.go(p, s2, Con{U32.and(U32.shrn(s2, 16n), 255), acc}) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.mul https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shrn