BlackHart
Go live
Open source / Security and cryptography

random_compat

PHP 7's random_bytes and random_int functions, for PHP 5.

Open source · PHP · Packagist · github.com/paragonie/random_compat

1000up 45
Own code · last move Dec 4

Score by release

1000

Scored once, on Dec 1. On Dec 4 it rose 45 points when the top of the open-source scale moved from 955 to 1000.

Every Score Move

Open any move to see what changed
Dec 4up 45Model updateOpen-source scale: top moved from 955 to 1000
Score 955 to 1000

The top of the open-source scale moved from 955 to 1000: every score rose by 45 points, and nothing else about the method or the reads changed.

Own code and dependencies

1000Own coderandom_compat's own code, scored by BlackHart-1. This is its score across the index.
1000With its dependenciesIt depends on none of the projects we score, so this is the same as its own code.

BlackHart-1 read random_compat at release v2.0.21, published Feb 16, 2022, on Dec 1: its PHP and Shell code.

This score is what BlackHart-1's automated rules found in the code of release v2.0.21, against the typical rate for PHP among these 500 projects. 1000 means no automated rule matched in a full read; it does not mean the code is audited, flaw-free, or without published advisories. It does not assess how the project is maintained, and it cannot be compared with a protocol's score.

If you maintain random_compat and think a fact or a read is wrong, write to security@blackhart.io.

How we score open source

Depended on by

705Packagist packages depend on paragonie/random_compat.

764,316,072 downloads in all.

From packages.ecosyste.ms, read Nov 29, 2026.

About random_compat

License
MIT
Language
PHP
Function
Security and cryptography
Ecosystem
Packagist

Packages

The names random_compat publishes, by registry.

Packagist
paragonie/random_compat