Arne Goedeke
f93d546ee0
randombytes
: Replace run-time require detection
...
Using require() as an expression leads to compile errors in webpack.
This issue can be solved by guarding the use of require by the 'correct'
run-time check using `typeof require`.
2023-03-02 09:48:16 +01:00
Kasper Isager Dalsgarð
87ff2a56bd
Use globalThis
instead of global
( #61 )
...
* Use `globalThis` instead of `global`
* Update `standard`
2021-11-02 16:36:15 +01:00
Emil Bay
7b518f7b2c
Fix offset ArrayBuffer views
2020-06-24 15:01:10 +02:00
Emil Bay
74a1067746
Fix filling larger width TypedArrays
2020-06-24 14:55:46 +02:00
Emil Bay
30c3342156
Make linter happy
2020-06-24 14:08:55 +02:00
Emil Bay
e77c70ef71
Bust crypto in browserify
2020-06-24 13:37:16 +02:00
Emil Bay
4bb40aa43d
Clean up random bytes
2020-06-24 13:37:07 +02:00
Mathias Buus
48081c6896
ignore crypto in the browser
2017-11-19 13:16:35 +01:00
Emil Bay
f336097b6a
Fix bug with undefined window in web workers
...
Fixes #8
2017-11-03 08:19:06 +01:00
Emil Bay
49feb73134
Move out randombytes_buf
2017-06-19 22:34:12 +02:00