8000 Question: replicating exact functionality of Math.random() · Issue #38 · ckknight/random-js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Question: replicating exact functionality of Math.random() #38
Open
@gc

Description

@gc

Kind of 2 quick questions:

  1. I want to replicate the exact output of Math.random(), is this correct? real(0, 1, false)(engine);
  2. I'm replacing Math.random() with the above because I want the output to be unpredictable, as I've seen that its possible, given a sample of outputs of Math.random(), a user can determine what the next outputs will be. I was wondering if you could confirm, for my sanity, that using this library will prevent that? I'm using nodeCrypto as an engine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0