mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 13:15:14 +00:00
use uuid4, not uuid5
This commit is contained in:
parent
fc00dfd871
commit
4bfc438d9f
1 changed files with 2 additions and 2 deletions
|
@ -562,7 +562,7 @@ function item_message_id() {
|
||||||
$dups = false;
|
$dups = false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$hash = Uuid::uuid5(Uuid::NAMESPACE_DNS, App::get_hostname())->toString();
|
$hash = Uuid::uuid4(Uuid::NAMESPACE_DNS, App::get_hostname())->toString();
|
||||||
} catch (UnsatisfiedDependencyException $e) {
|
} catch (UnsatisfiedDependencyException $e) {
|
||||||
$hash = random_string(48);
|
$hash = random_string(48);
|
||||||
}
|
}
|
||||||
|
@ -591,7 +591,7 @@ function photo_new_resource() {
|
||||||
$found = false;
|
$found = false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$hash = Uuid::uuid5(Uuid::NAMESPACE_DNS, App::get_hostname())->toString();
|
$hash = Uuid::uuid4(Uuid::NAMESPACE_DNS, App::get_hostname())->toString();
|
||||||
} catch (UnsatisfiedDependencyException $e) {
|
} catch (UnsatisfiedDependencyException $e) {
|
||||||
$hash = random_string(48);
|
$hash = random_string(48);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue