diff options
author | 2022-09-14 04:12:32 -0700 | |
---|---|---|
committer | 2022-09-14 04:12:32 -0700 | |
commit | 7bfa302b75c2450a872dc6b5de0002a9c7959ea9 (patch) | |
tree | c01a806611a0cbff3c47cfb9bc098d14e7d1667c /src/bun.js/bindings/headers.h | |
parent | 0935ab14d6cad3a3c80bee5b585381cfbbe74699 (diff) | |
download | bun-7bfa302b75c2450a872dc6b5de0002a9c7959ea9.tar.gz bun-7bfa302b75c2450a872dc6b5de0002a9c7959ea9.tar.zst bun-7bfa302b75c2450a872dc6b5de0002a9c7959ea9.zip |
Make `crypto.getRandomValues()` faster + fix > 1 byte/element typed arrays
Fix crypto.getRandomValues() with > 1 byte element typed arrays
Fixes https://github.com/oven-sh/bun/issues/1237
Diffstat (limited to 'src/bun.js/bindings/headers.h')
-rw-r--r-- | src/bun.js/bindings/headers.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/bun.js/bindings/headers.h b/src/bun.js/bindings/headers.h index 9f1b43c8c..293abf53f 100644 --- a/src/bun.js/bindings/headers.h +++ b/src/bun.js/bindings/headers.h @@ -1,5 +1,5 @@ // clang-format off -//-- AUTOGENERATED FILE -- 1662772023 +//-- AUTOGENERATED FILE -- 1663152297 #pragma once #include <stddef.h> @@ -750,6 +750,22 @@ ZIG_DECL JSC__JSValue Reader__intptr__fastpath(JSC__JSGlobalObject* arg0, void* ZIG_DECL JSC__JSValue Reader__intptr__slowpath(JSC__JSGlobalObject* arg0, JSC__JSValue JSValue1, JSC__JSValue* arg2, size_t arg3); #endif +CPP_DECL void Crypto__getRandomValues__put(JSC__JSGlobalObject* arg0, JSC__JSValue JSValue1); + +#ifdef __cplusplus + +ZIG_DECL JSC__JSValue Crypto__getRandomValues__fastpath(JSC__JSGlobalObject* arg0, void* arg1, Uint8Array_alias* arg2); +ZIG_DECL JSC__JSValue Crypto__getRandomValues__slowpath(JSC__JSGlobalObject* arg0, JSC__JSValue JSValue1, JSC__JSValue* arg2, size_t arg3); + +#endif +CPP_DECL void Crypto__randomUUID__put(JSC__JSGlobalObject* arg0, JSC__JSValue JSValue1); + +#ifdef __cplusplus + +ZIG_DECL JSC__JSValue Crypto__randomUUID__fastpath(JSC__JSGlobalObject* arg0, void* arg1); +ZIG_DECL JSC__JSValue Crypto__randomUUID__slowpath(JSC__JSGlobalObject* arg0, JSC__JSValue JSValue1, JSC__JSValue* arg2, size_t arg3); + +#endif #pragma mark - Zig::GlobalObject |