Skip to content

Error: Your browser does not support window.crypto. #6

Open
@deckar01

Description

@deckar01

When I call cryptocoin.secureRandom(bytes) in browsers that support crypto.getRandomValues(clampedArray), I get the error Error: Your browser does not support window.crypto.

The node module secure-random looks for globals.crypto, but is unable to find it.

In the official repo secure-random.js#L23 the function looks for window.crypto. Is this an issue with the way browserify is injecting globals?

Note: I am using bower to include cryptocoin.
I added secure-random with bower and it works fine on its own.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions