Skip to content

crypto/rand: Panic fetching random boundary string #9205

@gopherbot

Description

@gopherbot

by birkirb@stoicviking.net:

What happened?

On creating a random boundary the following panic occurred:

panic: read /dev/urandom: resource temporarily unavailable

Which unfortunately crashed my program (since it was running in a go-routine off main
thread which had panic recovery).

Is having a panic recovery for all go-routines the Right Thing to do?

What should have happened instead?

Error in this rate case would have been nice. Not sure what causes /dev/urandom to be
unavailable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions