mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 15:27:32 +09:00
No Issue - Implement crypto.randomUUID
We already have code in the platform to generate random UUIDs. This simply exposes that functionality via the crypto.UUID function
This commit is contained in:
parent
48c27934c7
commit
9e6a0c089f
3 changed files with 27 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
|||
#include "mozilla/dom/SubtleCrypto.h"
|
||||
#include "nsIGlobalObject.h"
|
||||
|
||||
#include "nsString.h"
|
||||
#include "nsWrapperCache.h"
|
||||
#include "mozilla/dom/TypedArray.h"
|
||||
#define NS_DOMCRYPTO_CID \
|
||||
|
|
@ -39,6 +40,8 @@ public:
|
|||
JS::MutableHandle<JSObject*> aRetval,
|
||||
ErrorResult& aRv);
|
||||
|
||||
void RandomUUID(nsAString& aRetVal);
|
||||
|
||||
SubtleCrypto*
|
||||
Subtle();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue