mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 17:59:39 +00:00
12859761b9
This only changes `_SecureRandom._getBytes` to make the rest of the code work. Implementation is currently slow: for each random number generation, it allocates one JS `Uint8Array`, and because we can't directly read from a JS `Uint8Array` using `dart:js_interop`, a Dart `Uint8List` wrapper for it. We can optimize separately. Fixes #55031. Fixes test lib/math/random_secure_test on browsers. The test keeps failing in d8 as d8 doesn't define the `crypto` object. Change-Id: I9d6bbd1bb576c0d0b7206cb2939ee65d987ec297 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/356040 Commit-Queue: Ömer Ağacan <omersa@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com> |
||
---|---|---|
.. | ||
js_dev_runtime | ||
js_runtime | ||
js_shared | ||
sdk_library_metadata | ||
vm | ||
vm_shared/lib | ||
wasm | ||
wasm_js_compatibility/lib | ||
allowed_experiments.json | ||
fix_data.yaml |