Fix indentation
This commit is contained in:
parent
18927d1632
commit
51e72037f1
Binary file not shown.
@ -177,7 +177,7 @@ function PRNG(address sender) private view returns(uint8){
|
|||||||
// Totally "awesome" PRNG
|
// Totally "awesome" PRNG
|
||||||
//return uint8(keccak256(abi.encodePacked(sender, block.coinbase, now, big_secret)));
|
//return uint8(keccak256(abi.encodePacked(sender, block.coinbase, now, big_secret)));
|
||||||
return uint8(uint(keccak256(abi.encodePacked(sender, block.coinbase, now, big_secret))));
|
return uint8(uint(keccak256(abi.encodePacked(sender, block.coinbase, now, big_secret))));
|
||||||
}
|
}
|
||||||
\end{minted}
|
\end{minted}
|
||||||
Since blockchain is a deterministic data structure, anyone can produce the outcome of the PRNG function, given that they know the parameters/seeds used to generate randomness. Let's take a look at the parameters used in generation of a number:
|
Since blockchain is a deterministic data structure, anyone can produce the outcome of the PRNG function, given that they know the parameters/seeds used to generate randomness. Let's take a look at the parameters used in generation of a number:
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user