def top31

bend-collections-laws-crypto@1.0.0.0 · src/math/random/rand.bend:83

import bend-collections-laws-crypto@1.0.0.0/src/math/random/rand.bend as Rand
import Base
import bend-collections-laws-crypto@1.0.0.0/src/math/u64.bend as W
import bend-collections-laws-crypto@1.0.0.0/src/math/w64.bend as X

83def top31(-S: Data, p: W.U64 & S) -> U32 & S:
84  (x, s) = p
85  (U32.shr(X.hi(x)), s)

Uses (6)

Used by (1)