Skip to content

Fix JitterRng::new #16

Closed
Closed

Description

@dhardy

See #15 and #13.

Activity

  1. vks commented on Apr 22, 2021

    @vks
    Contributor

    I'm not sure how to fix this without reverting making JitterRng generic.

  2. dhardy commented on Apr 22, 2021

    @dhardy
    MemberAuthor

    It's curious design that fn new does extra init/test stuff that fn new_with_timer does not. We could add a bool parameter to the latter to enable this?

    Then perhaps we just expect users to write something similar to this:

    let mut rng = JitterRng::new_with_timer(platform::get_nstime, true);
  3. dhardy commented on Apr 22, 2021

    @dhardy
    MemberAuthor

    We can always just continue ignoring this issue (or just close it); I'm not aware of anyone actually using JitterRng::new.

  4. added 2 commits that reference this issue on Nov 20, 2023
    d3a32d6
    2b86ba1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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