Skip to content

Commit

Permalink
Support for Cloudflare Workers for javascript_stir (#1401)
Browse files Browse the repository at this point in the history
* Support for Cloudflare Workers for javascript_stir

* Ramove debugging comment

---------

Co-authored-by: Frank Denis <124872+jedisct1@users.noreply.github.com>
  • Loading branch information
mschwarzl and jedisct1 authored Aug 13, 2024
1 parent 01379fe commit 1012bbc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libsodium/randombytes/randombytes.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ javascript_stir(void)
try {
var window_ = 'object' === typeof window ? window : self;
var crypto_ = typeof window_.crypto !== 'undefined' ? window_.crypto : window_.msCrypto;
crypto_ = (crypto_ === undefined) ? crypto : crypto_;
var randomValuesStandard = function() {
var buf = new Uint32Array(1);
crypto_.getRandomValues(buf);
Expand Down

0 comments on commit 1012bbc

Please sign in to comment.