langsmith
Version:
Client library to connect to the LangSmith Observability and Evaluation Platform.
11 lines (10 loc) • 369 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = rng;
// RNG values for use in UUID generation. This *must* use a high-quality source
// of entropy, such as `crypto.getRandomValues()`. And we reuse an array for
// performance.
const rnds8 = new Uint8Array(16);
function rng() {
return crypto.getRandomValues(rnds8);
}