Giter Club home page Giter Club logo

brorand's People

Contributors

dryajov avatar indutny avatar mariocasciaro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

brorand's Issues

Brorand & Other platforms

Hello @indutny

Hope you well. I was working on elliptic on Cordova-like platform (ios & android) and got an error here https://github.com/indutny/brorand/blob/master/index.js#L21 L22

rand.getByte() & rand.getBytes() are not supported

We know why but i wonder if you are aware to introduce other plateform in brorand such-as expo-random or maybe a native implementation for mobile plateform ?

This is a only blocking point to use elliptic on mobile plateform.

All the best
Michael

How is this project so popular in npm?

This is just mind blown. I can't find any blog post or discussion about this module, despite that, it still has more than 2 million downloads on npm.

Cannot get getByte of Null

I'm trying to use elliptic.js in WebWorker. And I've got this error.

TypeError: Не удалось получить свойство "getByte" ссылки, значение которой не определено или является NULL
   at _rand (http://localhost:3000/worker/elliptic.js:7493:9)
   at generate (http://localhost:3000/worker/elliptic.js:7456:3)
   at rand (http://localhost:3000/worker/elliptic.js:7447:3)
   at genKeyPair (http://localhost:3000/worker/elliptic.js:5654:3)
   at Anonymous function (http://localhost:3000/worker/webcrypto-liner.js:3269:14)
   at u (http://localhost:3000/worker/promise.min.js:1:618)
   at v (http://localhost:3000/worker/promise.min.js:1:1801)
   at f (http://localhost:3000/worker/promise.min.js:1:853)
   at EcCrypto.generateKey (http://localhost:3000/worker/webcrypto-liner.js:3262:10)
   at Anonymous function (http://localhost:3000/worker/webcrypto-liner.js:2148:14)

I fixed this problem by

1.0.7 and later broken in the browser

Commit #7 breaks the use of brorand by bcoin in Cordova.

You never define self anywhere, and it throws TypeError: Cannot read property 'getRandomValues' of undefined. I don't know how this is supposed to work...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.