add dberrornice template for database-errors
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -441,7 +441,7 @@ class FroxlorInstall
|
||||
return bin2hex(openssl_random_pseudo_bytes($length));
|
||||
}
|
||||
// if everything else fails, use unsafe fallback
|
||||
return md5(uniqid(microtime(), 1));
|
||||
return substr(md5(uniqid(microtime(), 1)), 0, $length);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user