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 committed Aug 13, 2024
1 parent 445dc37 commit b7b1c08
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 @@ -89,6 +89,7 @@ randombytes_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 b7b1c08

Please sign in to comment.