Skip to content

Change RngCore doc in regards to Default #378

@newpavlov

Description

@newpavlov

Currently we have the following line in the docs for RngCore:

also do not implement Default, but instead implement SeedableRng thus allowing use of rand::NewRng (which is automatically implemented)

I think it should be changed to "do not implement Default for pseudorandom generators" or to something similar. For hardware RNGs (e.g. rdrand) and OS RNGs it does not make sense to implement SeedableRng.

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