AK+LibWeb: Move generation of random UUIDs into AK

This will let us use this more outside of LibWeb more easily.

Stop handling tiny OOM while we are here.
This commit is contained in:
Timothy Flynn
2026-03-24 08:33:21 -04:00
committed by Tim Flynn
parent 16dffe39a0
commit 58791db818
Notes: github-actions[bot] 2026-03-24 16:07:31 +00:00
14 changed files with 74 additions and 75 deletions

View File

@@ -21,8 +21,8 @@ IDBDatabase::IDBDatabase(JS::Realm& realm, Database& db)
: EventTarget(realm)
, m_name(db.name())
, m_associated_database(db)
, m_uuid(Crypto::generate_random_uuid())
{
m_uuid = MUST(Crypto::generate_random_uuid());
db.associate(*this);
m_object_store_set = Vector<GC::Ref<ObjectStore>> { db.object_stores() };
}