codeDigest

tcmts.cli.suites.codeDigest · #mlcmu7em · term · runs on the server

uses node:crypto

The own code of the definitions a run executed, in the order it names them, as one digest.

import crypto from "node:crypto";

export function codeDigest(codes: string[]): string {
  return crypto.createHash("sha256").update(codes.join("\n")).digest("hex").slice(0, 32);
}

used by