Skip to content

modular_computers.generate_id uses minetest.get_password_hash in a PRNG. #14

Description

@red-001

This is an API misuse (see the discussion on luanti-org/luanti#12564), I would replacing the function so that it uses SecureRandom with a fallback to PcgRandom.

local hash = minetest.get_password_hash(player_name, current_time)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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