Skip to content

BLOCKER: How to seed randoms with entropy ? #2110

Closed
@rebcabin

Description

@rebcabin

This is a real BLOCKER but I hope easy to fix ? I need randoms that change from run-to-run. Our LPython random produces the same result every run.

from random import random

print(random())  ########### PRODUCES SAME RESULT EVERY RUN ##########

# BUT, how to seed with time-of-day or internet noise
# or some other sort of variable entropy?

# NO WORK from random import seed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions