contract Random is VRFConsumerBase{

1.function requestNewRandom(uint256 toeknId ) public returns (bytes32)

谁能调它:

2.tokenId

顺序递增 —> 没有使用sfaeMath

  1. function _incrementTokenId() private {
  2. _currentTokenId++;
  3. }
  4. function _getNextTokenId() private view returns (uint256) {
  5. return _currentTokenId+1;
  6. }