ScalaCheck is a mature, well-crafted library for automated property-based testing in Scala. It provides a rich set of generators (Gen), property combinators (Prop), implicit arbitrary instances (Arbitrary), and shrinking (Shrink) for test case minimization. The library supports stateful testing via the Commands API and includes a deterministic PRNG (Seed). It is cross-compiled for JVM, JavaScript, and Native platforms, and integrates seamlessly with sbt's test framework. The codebase is clean, well-structured, and extensively tested, with active maintenance by the Typelevel organization.
This repository is a PHP 5.x polyfill library that provides implementations of the `random_bytes()` and `random_int()` cryptographic functions introduced in PHP 7. The library implements a fallback chain of secure random sources: libsodium extension, /dev/urandom (Unix), mcrypt_create_iv(), and CAPICOM (Windows). It throws exceptions when no secure random source is available rather than falling back to insecure alternatives. The library features modular implementation with separate files for each random source, along with utility functions for mbstring.func_overload-safe string operations and safe integer casting. It includes comprehensive unit tests and maintains compatibility with PHP versions from 5.2 through current versions by disabling itself on PHP 7.0+.