ScriptedRandom
Random bytes from a script, handed out in order, so that a backend under test replays a known-answer vector through its public operations: the d || z and m of ML-KEM (FIPS 203 Algorithms 19 and 20), the ξ and rnd of ML-DSA (FIPS 204 Algorithms 1 and 2).
A backend draws its randomness from here through its own CryptoBackend.randomBytes, usually that of a classical backend it wraps (see MlKemConformanceTest). Asking for more than is left fails, and remaining shows whether an operation drew exactly what the standard prescribes. Not thread-safe: one test uses one script.
Parameters
script
the bytes to hand out, in order; the arrays are copied.