How to Install and Uninstall php-random-compat Package on Ubuntu 21.10 (Impish Indri)

Last updated: December 23,2024

1. Install "php-random-compat" package

In this section, we are going to explain the necessary steps to install php-random-compat on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install php-random-compat

2. Uninstall "php-random-compat" package

This guide covers the steps necessary to uninstall php-random-compat on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove php-random-compat $ sudo apt autoclean && sudo apt autoremove

3. Information about the php-random-compat package on Ubuntu 21.10 (Impish Indri)

Package: php-random-compat
Architecture: all
Version: 2.0.19-1
Priority: optional
Section: universe/php
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP PEAR Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 64
Depends: php-common
Suggests: php-libsodium
Filename: pool/universe/p/php-random-compat/php-random-compat_2.0.19-1_all.deb
Size: 10360
MD5sum: 1763fadaa59fb37fb8e791fc993993b7
SHA1: f20104022e78d7b462c49550a44a04d11927226f
SHA256: f4b1b28785b2b49737923a3a34382332f79989ace06fc90a3ce5708871f79bfa
SHA512: c96a0604369032dad81c3f6ddc378daf5f39c697250b602eb833e04b6e2cb93c73b8f8bee5bcf653c79aae54ffdfca72fb221d0b7ae22e43b86fc4a26eaaf019
Homepage: https://github.com/paragonie/random_compat
Description-en: PHP 5.x polyfill for random_bytes() and random_int() from PHP 7
The random_compat polyfill provides simple interfaces for cryptographically
secure random number generators added in PHP 7.0.0:
* random_bytes(int) generates an arbitrary number of random bytes
* random_int(int, int) returns a random integer between two given values
(inclusive)
Description-md5: b60816fca5e7a72ff3497652e4864465