Generate deterministic random data from entropy using SHA256. If n <= 32, returns the first n bytes of SHA256(entropy). Matches Rust sha256_deterministic_random function.
The entropy bytes to hash
Number of bytes to return (must be <= 32)
Error if n > 32
Generate deterministic random data from entropy using SHA256. If n <= 32, returns the first n bytes of SHA256(entropy). Matches Rust sha256_deterministic_random function.