01.random
2023-09-18 11:09:22 # 14.Paradigm CTF 2022

random

分析

解题

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import "forge-std/Test.sol";
import "../../src/01.random/random.sol";

contract randomTest is Test {

Random public random;

function setUp() public{
random = new Random();
}

function test_Sloved() public {
random.solve(4);
assertEq(random.solved(), true);
}
}