跳到正文
TakoAPI
返回技能列表

goldenseed

由 beanapologist 提供

Browser & Automation
888下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Deterministic entropy streams for reproducible testing and procedural generation.

描述

该技能的功能

GoldenSeed generates infinite deterministic byte streams from fixed seeds using the UniversalQKD class in the golden-seed Python package. Same seed always produces identical output across runs. Not cryptographically secure — suited for testing, procedural generation, and simulations where reproducibility matters more than unpredictability.

Python's built-in random module doesn't guarantee identical output across versions or platforms, so GoldenSeed fills that gap when exact byte-level reproducibility across runs and environments is required.

何时使用

  • Debugging flaky tests by replaying the exact random sequence that caused a failure
  • Generating identical game worlds or map chunks from a shared numeric seed
  • Running reproducible Monte Carlo simulations with verifiable byte-level results
  • Creating procedural art or generative NFTs where the seed proves the output
  • Proving fair dice rolls in competitive games by publishing the seed after the fact

示例工作流

输入

User asks: Generate reproducible test user records using seed 42

智能体
  1. 1

    Install golden-seed via pip

  2. 2

    Import UniversalQKD from gq and initialize a TestDataGenerator with seed=42

  3. 3

    Call random_user() to get a deterministic dict with id, age, and premium flag

  4. 4

    Re-initialize with seed=42 and call random_user() again

  5. 5

    Assert both dicts are identical to confirm full reproducibility

输出

Two identical user dicts confirming the sequence is byte-for-byte reproducible from seed 42

安装

clawhub install beanapologist/goldenseed

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接