Skip to content

3.9.0

Compare
Choose a tag to compare
@ramsey ramsey released this 30 Nov 23:58
3.9.0
8fde15a

Added

  • Add function API as convenience. The functions are available in the
    Ramsey\Uuid namespace.
    • v1(int|string|null $node = null, int|null $clockSeq = null): string
    • v3(string|UuidInterface $ns, string $name): string
    • v4(): string
    • v5(string|UuidInterface $ns, string $name): string

Changed

  • Use paragonie/random-lib instead of ircmaxell/random-lib. This is a
    non-breaking change.
  • Use a high-strength generator by default, when using RandomLibAdapter. This
    is a non-breaking change.

Deprecated

These will be removed in ramsey/uuid version 4.0.0:

  • MtRandGenerator, OpenSslGenerator, and SodiumRandomGenerator are
    deprecated in favor of using the default RandomBytesGenerator.

Fixed

  • Set ext-json as a required dependency in composer.json.
  • Use PHP_OS instead of php_uname() when determining the system OS, for
    cases when php_uname() is disabled for security reasons.