• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mpyw / EasyCrypt / 4401447185

pending completion
4401447185

push

github

mpyw
ci: 🎡 Remove deprecated RC4 testing

61 of 62 relevant lines covered (98.39%)

42.16 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/src/IvGenerator/RandomIvGenerator.php
1
<?php
2

3
namespace Mpyw\EasyCrypt\IvGenerator;
4

5
class RandomIvGenerator implements IvGeneratorInterface
6
{
7
    /**
8
     * Generate new iv/counter value.
9
     *
10
     * @param  int    $length
11
     * @return string
12
     */
13
    public function generate(int $length): string
14
    {
15
        if ($length < 1) {
49✔
16
            return '';
×
17
        }
18

19
        do {
20
            $data = openssl_random_pseudo_bytes($length, $secure);
49✔
21
        } while (!$secure);
49✔
22

23
        return $data;
49✔
24
    }
25
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc