mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
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:
Notes:
github-actions[bot]
2026-03-24 16:07:31 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/58791db8181 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8589 Reviewed-by: https://github.com/shannonbooth
@@ -26,8 +26,8 @@ IDBTransaction::IDBTransaction(JS::Realm& realm, GC::Ref<IDBDatabase> connection
|
||||
, m_mode(mode)
|
||||
, m_durability(durability)
|
||||
, m_scope(move(scopes))
|
||||
, m_uuid(Crypto::generate_random_uuid())
|
||||
{
|
||||
m_uuid = MUST(Crypto::generate_random_uuid());
|
||||
connection->add_transaction(*this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user