random_bytes

Supported Versions: PHP 7, PHP 8
Get cryptographically secure random bytes
<?php random_bytes(int $length): string
<?php     public function testInsertAndSelect(): void

    {

        $id1 = random_bytes(16);

        $id2 = random_bytes(16);



        $value1 = random_bytes(64);
<?php     public function testInsertAndSelect(): void

    {

        $id1 = random_bytes(16);

        $id2 = random_bytes(16);



        $value1 = random_bytes(64);

        $value2 = random_bytes(64);
<?php         $id1 = random_bytes(16);

        $id2 = random_bytes(16);



        $value1 = random_bytes(64);

        $value2 = random_bytes(64);
<?php         $id2 = random_bytes(16);



        $value1 = random_bytes(64);

        $value2 = random_bytes(64);




        if ($this->connection->getDriver() instanceof Driver) {