added polyfill for random_int in case it doesn't exists
authordanix <danix@danix.xyz>
Sun, 10 Mar 2019 11:44:53 +0000 (12:44 +0100)
committerdanix <danix@danix.xyz>
Sun, 10 Mar 2019 11:44:53 +0000 (12:44 +0100)
index.php

index d951ce631d0f7fa2ea142cec5fe2b9f0d9bc469c..38f95627136a94d2a19997cf58533b0972b2d7ca 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,4 +1,7 @@
 <?php
+if (!function_exists("random_int")) {
+       require_once "./random_compat/lib/random.php";
+}
 function generator($howmany = 6) {
        $numbers = array();
        $i = 0;