# Weak Random Number Generation

> Detects the use of PRNGs (Pseudo-Random Number Generators) that are not cryptographically secure.

- Skill: `zakirkun/weak-random-number-generation` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add zakirkun/weak-random-number-generation`
- Raw SKILL.md: https://api.skillmd.com/api/skills/zakirkun/weak-random-number-generation/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: zakirkun (https://skillmd.com/u/zakirkun)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/zakirkun/weak-random-number-generation

---


# Weak Random Number Generation

## Overview
Detects the use of PRNGs (Pseudo-Random Number Generators) that are not cryptographically secure.

## Remediation
Use cryptographically secure PRNGs (CSPRNG), like crypto/rand in Go, secrets in Python, or Crypto.getRandomValues in JS.

