Skip to content

Commit

Permalink
Update: 가격 0 고정에서 랜덤으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobhboy committed Mar 28, 2024
1 parent 0776de7 commit 18cfa25
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import java.time.LocalDateTime;

import org.springframework.data.annotation.CreatedDate;

import com.project.bumawiki.domain.coin.domain.type.TradeStatus;

import jakarta.persistence.Entity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ void changePrice() {
Long min = Math.max(recentPrice.getPrice() - CHANGE_MONEY_RANGE, 0L);

SecureRandom random = getRandomInstance();
// Long randomPrice = random.nextLong(max - min + 1L) + min;
Long randomPrice = 0L;
Long randomPrice = random.nextLong(max - min + 1L) + min;
Price newPrice;
if (randomPrice == 0) {
restartCoin();
Expand Down

0 comments on commit 18cfa25

Please sign in to comment.