# fix\(web\): polyfill crypto.randomUUID for non-secure HTTP contexts · gitcafe/t3code

[View on GitCafe](https://git.cafe/gitcafe/t3code/commit/9d2c2cae375b6dfc7469c1ada07a109779364846)

Repository: [gitcafe/t3code](https://git.cafe/gitcafe/t3code)

Visibility: public

Requested revision: 9d2c2cae375b6dfc7469c1ada07a109779364846

Requested commit: 9d2c2cae375b6dfc7469c1ada07a109779364846

Commit: 9d2c2cae375b6dfc7469c1ada07a109779364846

Tree: 0abb18611710ad437a3615912e5e9c1bd866ca30

Author: Hiram Chirino

Committer: Julius Marminge

## Message

```
fix(web): polyfill crypto.randomUUID for non-secure HTTP contexts

Replace direct crypto.randomUUID() calls with a randomUUID() helper in
utils.ts that falls back to crypto.getRandomValues() when the browser
is not in a secure context (e.g. plain HTTP on a non-localhost address).

Signed-off-by: Hiram Chirino <hiram@hiramchirino.com>

```

## Parents

- [dcccca3f7b5d089f9946b866c9a149e94fd4c616](https://git.cafe/gitcafe/t3code/commit/dcccca3f7b5d089f9946b866c9a149e94fd4c616?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/t3code/tree/9d2c2cae375b6dfc7469c1ada07a109779364846?format=markdown)
