Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

random numbers and entropy #3

Open
stevenroose opened this issue Feb 2, 2014 · 0 comments
Open

random numbers and entropy #3

stevenroose opened this issue Feb 2, 2014 · 0 comments

Comments

@stevenroose
Copy link
Member

The ability to generate secure random numbers is extremely important when dealing with Bitcoin and has to be taken seriously. However, I've been pointed out that the Dart built-in random number generator is not very secure.

Also, I want to add the ability for developers to specify additional entropy sources for generating numbers, f.e. when they capture mouse movements from a user.

What I want to avoid is requiring that a random source is provided every time random number generation happens, so I've been thinking about providing a singleton class using which can be specified what entropy source will be used.

The cipher package provides some implementations of SRNG and entropy sources, so I'd probably use the interfaces from cipher.

In general, I'm no big fan of using singletons, that's why I put the idea here, maybe someone can come up with a different/better solution.

@stevenroose stevenroose removed this from the alpha milestone Sep 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant