Skip to content

reseed interacts poorly with other libraries, out of range call in fix_random_seed #960

@matthewdeanmartin

Description

@matthewdeanmartin

E ValueError: Seed must be between 0 and 2**32 - 1

reseed interacts poorly with other libraries

Build logs with thinc in call stack

https://github.com/matthewdeanmartin/skip_trace/actions/runs/18444779557/job/52549928289#step:7:180

Maintainer of other library that says he can't do anything about the behavior of thinc

pytest-dev/pytest-randomly#689 (comment)

Maybe some defensive coding around fix random seed?

eg.
try:
numpy.random.seed(seed)
except ValueError:
numpy.random.seed(0)

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