Skip to content

Random image is always image 1. #1

@r4dian

Description

@r4dian
  1. Visit /api/random
  2. it always redirects to image 1

in api.js:56 const randomID = Math.floor(Math.random() * lastID) + 1;, lastID is still at the initial value of 0 so this is equivalent to const randomID = 0 + 1;

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