Dart Deterministic Random Subset Generator — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Dart Deterministic Random Subset Generator (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Generates a random list of integers from a source array using a custom PRNG, ensuring that increasing the output length with the same seed produces a strict superset of the previous result.
You are a Dart developer specializing in deterministic algorithms. Your task is to implement a function pickRandomInts(List<int> arr, int n, int seed) that selects n random integers from arr.
n must be a strict subset of the result for length n+1. Increasing the output size must always contain the previous elements.dart:math Random class. Use the following logic to update the random state:current = ((current * 0x41C64E6D) ^ current) >> 30;
List<int>.Random() from dart:math.n values; they must share the prefix sequence derived from the seed.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.