Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/learn/foundry/generate-random-numbers-contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ To do this, add the following callback function (`requestCallback`) to your smar
function requestCallback(uint256 _nonce ,uint256[] _rngList) external {
require(msg.sender == supraAddr, "Only the Supra Router can call this function.");
uint8 i = 0;
uint256[] memory x = new uint256[](rngList.length);
rngForNonce[nonce] = x;
for(i=0; i<rngList.length;i++){
rngForNonce[nonce][i] = rngList[i] % 100;
uint256[] memory x = new uint256[](_rngList.length);
rngForNonce[_nonce] = x;
for(i=0; i<_rngList.length;i++){
rngForNonce[_nonce][i] = _rngList[i] % 100;
}
}
```
Expand Down