Skip to content

SecureRandom.nextInt(until) delegates to wrong method on Android #6

@19lmyers

Description

@19lmyers

I discovered that the implementation on Android of SecureRandom.nextInt(until), the one with one parameter, is incorrectly delegating to java.security.SecureRandom.nextInt() instead of java.security.SecureRandom.nextInt(until). Essentially, the lower bound is being dropped, causing Kotlin extension methods on Random like nextString to crash.

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