@aws-crypto/random-source-universal

Access to a secure random source in either a browser or NodeJs. See @aws-crypto/random-source-browser and @aws-crypto/random-source-node

Usage no npm install needed!

<script type="module">
  import awsCryptoRandomSourceUniversal from 'https://cdn.skypack.dev/@aws-crypto/random-source-universal';
</script>

README

@aws-crypto/random-source-universal

Access to a secure random source in either a browser or NodeJs. See @aws-crypto/random-source-browser and @aws-crypto/random-source-node

Usage

import {randomValues} from '@aws-crypto/random-source-node'

const seedData = await randomValues(16);

Test

npm test