Preface

In the development scenarios of DeepSeek Harness (DSH), whether building AI applications or debugging LLM tools, random number generation is often required. For example, generating unique identifiers, simulating data, or making random choices. Ordinary random number generation functions are not secure enough and may affect system stability. xby-random-generator is a cryptographically secure random number generation service based on the MCP protocol, designed to provide reliable random number support for the DSH plugin ecosystem.

Plugin Introduction

Name: xby-random-generator
Positioning: Random number generation service for DeepSeek Harness (DSH)
Maintainer: xby-skill
Category: admin-security
License: MIT

Core Features

This plugin provides a set of cryptographically secure random number generation interfaces:

  • set_xby_apikey: Sets the API key in the chat, supports automatic persistence, and remains valid after restart.
  • generate_random_integer: Generates a cryptographically secure random integer within a specified range.
  • generate_random_float: Generates a cryptographically secure random floating-point number.
  • generate_random_bytes: Generates cryptographically secure random bytes.
  • generate_uuid: Generates a cryptographically secure UUID (v4).
  • generate_random_string: Generates a cryptographically secure random string.
  • generate_random_choice: Uses cryptographically secure randomness to randomly select one item from a given list.
  • generate_random_boolean: Generates a cryptographically secure boolean value.

Installation and Configuration

Installing this plugin requires the DSH plugin management tool.

  1. Add the plugin using the following command (using the web profile as an example):
    dsh plugin --profile web add github:xby_skill/xby-random-generator
  1. Configure the API key:
    The plugin depends on an external key service. Visit Xiaobenyang Official Website to register and obtain an API key. After obtaining it, call the set_xby_apikey interface in the DSH chat context to complete the configuration.

Usage

After installation and configuration, the plugin can provide random number generation capabilities within the DSH process. Developers can directly call the feature interfaces listed above, such as generating UUIDs, random strings, or boolean values, to build more complex AI logic.

Notes

  • This plugin runs with the permissions of the current DSH process.
  • Before installation and use, it is recommended to check the source code and license (MIT).
  • This plugin has no official affiliation with DeepSeek / High-Flyer. Community directory: https://www.skillhub.cn/plugins/xby-skill/xby-random-generator.

Conclusion

xby-random-generator provides DSH developers with basic random number generation capabilities, making it suitable for scenarios that require highly secure random numbers.