Skip to content

Values seem to diverge over iterations #5

@Wrexial

Description

@Wrexial

Heya, been trying to narrow down a bug in a tool and I've narrowed down the issue to be from this package.

In essense i can reduce the issue to something simple:

image

Having a constant start seed (42) and a constant int bounds (14453), the first 164,455 values the random generator would give us the correct matching values with 164,455 having the value of 7947 on both java and python. Than at 164,456 in java it gives us the value 723 whereas in python we'd get a value of 9069. Interestingly, at iteration 164,457 in python we'd get the 723 that java gave us beforehand.

Would you have any idea what's happening? I tried to debug it but I'm not sure why the next function is returning different values. I did notice Java uses AtomicLong and I've tried to use atomiclong but it didnt change the values returned so I don't think that's the cause.

EDIT: ohh yeah, using latest JDK and latest python version if it matters

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