Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributenanoid2

A tiny, secure, URL-friendly, unique string ID generator with a pure Dart API.

pub.devRemove
xrandom

Consistent, high-performance, and reproducible random number generators in Dart.

pub.devRemove
ScoresHealth74 (best)48
Maintenance64 (best)0
Quality100 (best)96
Popularity64 (best)33
Community4646
Compatibility100100
UsageDownloads (30 days)59k (best)5.4k
Likes33 (best)11
Pub points160 / 160 (best)150 / 160
GitHub stars12 (best)11
MaintenanceLatest release2.1.0, 3 months ago (best)0.7.2, 5 years ago
Major versions in 12 months00
Contributors22
Publisherpascalwelsch.comrevercode.com
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies0 (best)1
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Pure Dart API with zero dependencies.
  • Highly configurable length and numerous built-in alphabets (base58, crockfordBase32, cookieSafe, etc.).
  • Uses cryptographically secure random number generators by default.
  • Bit-accurate consistency across different platforms
  • Multiple well-known RNG algorithms available (Xorshift, Xoshiro, Splitmix, Mulberry)
  • Faster execution times compared to standard dart:math Random in benchmarks
Weaknesses
  • Lacks an asynchronous API out of the box (though it can be wrapped in a Future if needed).
  • Some 64-bit generators are unsupported on JavaScript and will throw an UnsupportedError
  • Not cryptographically secure
WarningsNoneNone
nanoid2 vs xrandom: which Flutter package should you use? | pubscout