Skip to content

random function is not generating random numbers #21

@5hu5ky

Description

@5hu5ky

random function is not generating random numbers.

For example:

...
print("Random Value: ", atecc.random(rnd_min=200, rnd_max=1000024))
...

always returns 2040

...
print("Random Value: ", atecc.random(rnd_min=0, rnd_max=1024))
...

always returns 1016

Tested on a RPi 3B v1.2 using 3.3v
Code used to test - https://github.com/adafruit/Adafruit_CircuitPython_ATECC/blob/master/examples/atecc_simpletest.py

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