{"name":"expo-random","version":"11.1.0","keywords":["react-native","expo","random","crypto","random-bytes","secure","generator","bytes"],"author":{"name":"650 Industries, Inc."},"license":"MIT","_id":"expo-random@11.1.0","homepage":"https://docs.expo.io/versions/latest/sdk/random/","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"38822ac23625c545c37372c5b0464211d7771764","tarball":"http://registry-npm.ywwl.com/expo-random/download/expo-random-11.1.0.tgz","fileCount":26,"integrity":"sha512-6hHfSB3iobrioXBA07X2fBZKdBMF+sLSt/8oc4OSbLG4RGYN4SII28dIwnhkK9qNimoNCCNpEekDU1IY1Wjn3w==","signatures":[{"sig":"MEQCIEPRK3tVVnMfpJ/A1ZiU1+W9nObxxKs6JsVTgERTkTcaAiAFgt+nKoV2pVbfnRwfa7AocXEyZ5Z/147hExORwJLpIw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19077,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSCP9CRA9TVsSAnZWagAA5HgP+QBJX+ZBaBnlk7lop0zp\nkExoS0QnKIPJUKQM7iMr6+JSll1d3bNJ33OT2e7t4410V9WVAb5gskyq8eQP\nUb67ZJ155cRhCUOT7D3kVFVf6hzlP7MjTjKMeO94l1/z12O5hQVAp8tCFbRB\n0IICAPpfVNVa3bb7uaFms/7O23nlsY5Tqd5N0TeJiJ3uOe2fTfC/0cQ5fnxA\n/PjlpbjjkY9sWzy/T/UA7sfT7tdW0ZSUxSJjba0Z1lq9NuVfeDWe+2wZPZ2M\nh5UTPWMXMCuEiLWIz6m1udK1esMerroYZf3g2xw0HXD4UANf4/fVb9373LJb\nR1moOGlfZlGjcBcMwvHpJjuthjotZDiF7awyncLyPivag8xXB3NzvYMyG0ci\nSRBivCGaPvwVd3AR5hvO53pMBEbCZHZ6FvZrJ1aXybg3NKQlb0eO+J8cRhRZ\nfJtHM8ZMM0w7E49oH37vBQap35hOmuqXqDQSw3+XfmYXFz26RA2t9Tv46sxB\nGPahp8a/4YWKOc6VP+AaRfePE1OsMNcBnvordBhOenWoO0Vmu+tt19m9c8hi\nFpJesKx4W016gQzzJe3kdm8jIBadKusyMZDpzPef5l44tDM0urJtpW/fyJJw\nTNPC8t0SP4cZao9Ncj+Ze0E3rlQ3BT8qUX83s+tyeIHgNARUWs0Z9y5Kw15v\nsb+J\r\n=BqlO\r\n-----END PGP SIGNATURE-----\r\n","size":6258,"noattachment":false,"key":"/expo-random/-/expo-random-11.1.0.tgz"},"jest":{"preset":"expo-module-scripts"},"main":"build/Random.js","types":"build/Random.d.ts","gitHead":"5b57d1fd0a20294c1dec7c43b5df34dd6425d1a5","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"brentvatne","email":"brentvatne@gmail.com"},"repository":{"url":"git+https://github.com/expo/expo.git","type":"git","directory":"packages/expo-random"},"_npmVersion":"6.14.9","description":"Expo universal module for random bytes","directories":{},"sideEffects":false,"_nodeVersion":"14.15.2","dependencies":{"base64-js":"^1.3.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"expo-module-scripts":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/expo-random_11.1.0_1615340541131_0.11357180294809921","host":"s3://npm-registry-packages"},"readme":"# expo-random\n\nProvides a native interface for creating strong random bytes. With `Random` you can generate random values to address use cases that other APIs like the web's `crypto.getRandomValues` and Node's `crypto.randomBytes` might address.\n\n# Installation in managed Expo projects\n\nFor managed [managed](https://docs.expo.io/versions/latest/introduction/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.io/versions/latest/sdk/random/).\n\nYou can add a polyfill for the web's `crypto.getRandomValues` by installing [expo-standard-web-crypto](https://github.com/expo/expo/tree/master/packages/expo-standard-web-crypto) and importing it in SDK 39 and higher:\n\n```js\nimport { polyfillWebCrypto } from 'expo-standard-web-crypto';\n\npolyfillWebCrypto();\n// crypto.getRandomValues is now globally defined\n```\n\nOther libraries like [react-native-get-random-values](https://github.com/LinusU/react-native-get-random-values) may work too.\n\n# Installation in bare React Native projects\n\nFor bare React Native projects, you must ensure that you have [installed and configured the `react-native-unimodules` package](https://github.com/expo/expo/tree/master/packages/react-native-unimodules) before continuing.\n\n### Add the package to your npm dependencies\n\n```\nexpo install expo-random\n```\n\n### Configure for iOS\n\nRun `npx pod-install` after installing the npm package.\n\n### Configure for Android\n\nNo additional set up necessary.\n","publish_time":1615340541353,"maintainers":[{"email":"radoslaw.krzemien@swmansion.com","name":"radoslawkrzemien"},{"email":"piotrek.szeremeta@swmansion.com","name":"pkham"},{"email":"szymon.dziedzic@swmansion.com","name":"szdziedzic"},{"email":"npm@tsapeta.com","name":"tsapeta"},{"email":"ide+npm@jameside.com","name":"ide"},{"email":"kosmatylukasz@gmail.com","name":"lukmccall"},{"email":"beto@expo.io","name":"betoatexpo"},{"email":"phil@kitten.sh","name":"philpl"},{"email":"brent+expobotnpm@expo.io","name":"expo-bot"},{"email":"hughesno1@gmail.com","name":"alanhughes"},{"email":"hellokadi@gmail.com","name":"kadikraman"},{"email":"mikucki@gmail.com","name":"aleqsio"},{"email":"mwlawlor@gmail.com","name":"marklawlor"},{"email":"donadeldev@gmail.com","name":"gabrieldonadel"},{"email":"gosimek@gmail.com","name":"simek"},{"email":"keith@expo.io","name":"keith-kurak"},{"email":"chris@christopherwalter.com","name":"christopherwalter"},{"email":"datwheat@gmail.com","name":"fiber-god"},{"email":"brentvatne@gmail.com","name":"brentvatne"},{"email":"baconbrix@gmail.com","name":"evanbacon"},{"email":"quinlanjung@gmail.com","name":"quinlanj"},{"email":"support@expo.io","name":"expoadmin"},{"email":"exponent.team@gmail.com","name":"exponent"},{"email":"wschurman@gmail.com","name":"wschurman"},{"email":"me@bycedric.com","name":"bycedric"},{"email":"sampjon@gmail.com","name":"jonsamp"},{"email":"mhampton@hey.com","name":"princefleaswallow"},{"email":"ckchien@gmail.com","name":"kudochien"}],"deprecated":"This package is now deprecated in favor of expo-crypto, which provides the same functionality. To migrate, replace all imports from expo-random with imports from expo-crypto.","_cnpm_publish_time":1615340541353,"dist-tags":{"canary":"0.0.1-canary-20240418-8d74597","latest":"14.0.1","sdk-50":"13.6.0","sdk-51":"14.0.1"}}