Dart Progressive Random Subset Generator — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Dart Progressive 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.
Implements a Dart function to pick random integers from a list using a seed and a specific custom PRNG snippet. Ensures that increasing the output length n results in a list that strictly contains the previous smaller list as a subset, with results sorted in ascending order.
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 unique integers from arr based on a seed.
seed and arr, the result for n is a strict subset of the result for n+1. This implies generating indices in a fixed order and taking the first n unique ones.dart:math Random. Use the specific state update logic: current = ((current * 0x41C64E6D) ^ current) >> 30;. Initialize current with seed.Random from dart:math.n values that do not share the same prefix of the random sequence.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.