Skip to content

ImageObject.randomGenerator() yields a constant result #553

@chrisjansky

Description

@chrisjansky

Hello,

Despite the name random, the randomGenerator() method of ImageObject() yields the same result every time.

Minimal reproduction:

img = ImageObject()
img.randomGenerator((1000, 1000))
image(img, (0,0))

Is there a way to supply a seed parameter or perhaps instruct CoreImage to reinitialise to get a different result on each execution?

Thanks! :—)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions