Skip to content

crypto/rand: Read should call io.ReadFull #6084

@jaekwon

Description

@jaekwon
http://golang.org/pkg/crypto/rand/

The example is supposedly for the Read function, but it's actually just a usage of
Reader.

Fix: Move existing example under rand.Reader, and create a new example for rand.Read

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions