Halloween Special 2026! Get Up to 25% OFF Practice Questions! Limited Time - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Blockchain CBSP Exam - Topic 2 Question 72 Discussion

Posted by Elli on Jul 08, 2023 at 11:04 PM

Which of the following are good ways to get pseudo-random numbers for smart contracts?

Suggested Answer: A

Get Premium CBSP Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
42 comments · newest first
HA
Harley 11 months ago
Totally agree, private functions aren't reliable for this.
MA
Marshall 11 months ago
Wait, can we really trust block hashes for randomness?
LE
Leila 12 months ago
Private variables can be predictable, not a great idea.
JA
Jamal 12 months ago
I think external oracles are the best option.
DE
Derick 12 months ago
Block hashes are a common choice!
SY
Sylvia 1 year ago
I have a vague memory of block hashes being used in some examples, but I wonder if they are truly secure enough for smart contracts.
KR
Krissy 1 year ago
Private variables and functions seem too predictable for generating random numbers, but I can't recall the exact reasons why.
NI
Nickolas 1 year ago
I remember practicing a question about using external oracles for randomness, so I feel like option D could be a strong choice.
GU
Gussie 1 year ago
I think block hashes might be a good option for pseudo-random numbers, but I'm not entirely sure if they can be manipulated.
VE
Verlene 1 year ago
Wait, what's the difference between float before production and queue time? I'm not sure I fully understand how those fit into a routing operation. I'll have to guess on this one.
ST
Stefania 1 year ago
I'm a bit unsure about this one. The options seem pretty similar, but I'll go with proportionate since that seems to fit the legal requirements mentioned in the question.
SU
Sue 1 year ago
This seems like a straightforward question about improving a machine learning model. I'd start by looking at the performance metrics in Stackdriver and analyzing them in BigQuery to identify areas for improvement.
SH
Shalon 1 year ago
I'm a bit confused on this one. I'll have to review the material again to make sure I understand where the loadbalancing mode is specified.
FR
Frederica 1 year ago
Block hashes? Isn't that like using the weather to predict the stock market? I'll stick with the oracle, thanks.
LA
Lacresha 1 year ago
↳ replying to Frederica
Block hashes may not be the best choice for smart contracts.
CL
Clorinda 1 year ago
↳ replying to Frederica
Private variables and functions can also be good options.
JO
Joanna 1 year ago
↳ replying to Frederica
I prefer using an external oracle for pseudo-random numbers.
KA
Karon 1 year ago
↳ replying to Frederica
Block hashes can be unpredictable, like the weather.
AL
Alisha 1 year ago
Ooh, this is a tricky one. I'm going with B - private functions could be a sneaky way to generate pseudo-random numbers.
LE
Lettie 1 year ago
↳ replying to Alisha
I would go with private functions or block hashes for generating pseudo-random numbers.
SH
Shawnta 1 year ago
↳ replying to Alisha
Block hashes are also a good option for getting pseudo-random numbers.
LE
Leslie 1 year ago
↳ replying to Alisha
I think private functions could work for generating pseudo-random numbers.
WI
Winfred 1 year ago
I was leaning towards A, but now I'm not so sure. Private variables might not be as random as we need.
PA
Paris 1 year ago
↳ replying to Winfred
C) Block hashes
CA
Carrol 1 year ago
↳ replying to Winfred
Block hashes are a good way to get pseudo-random numbers for smart contracts.
LA
Laila 1 year ago
↳ replying to Winfred
D) External oracle
FR
Francesco 1 year ago
↳ replying to Winfred
C) Block hashes
SH
Sharen 1 year ago
↳ replying to Winfred
B) Private functions
KA
Karan 1 year ago
↳ replying to Winfred
A) Private variables
HI
Hillary 1 year ago
D seems like the best option to me. Using an external oracle is a secure way to get random numbers.
KR
Kris 1 year ago
↳ replying to Hillary
Private functions can help generate pseudo-random numbers within the smart contract.
BO
Bok 1 year ago
↳ replying to Hillary
Block hashes can also be a good source of pseudo-random numbers.
RE
Regenia 1 year ago
↳ replying to Hillary
I agree, using an external oracle adds an extra layer of security.
SA
Sang 2 years ago
I prefer using external oracle for pseudo-random numbers, it provides more flexibility.
CA
Carli 2 years ago
I agree with Roselle, block hashes are secure and unpredictable.
RO
Roselle 2 years ago
I think using block hashes is a good way to get pseudo-random numbers.
KA
Kati 2 years ago
I'm not sure about external oracle, it may introduce centralization risks.
AL
Albina 2 years ago
I think C is the correct answer. Block hashes can provide good pseudo-random numbers for smart contracts.
TI
Timothy 1 year ago
↳ replying to Albina
I think private functions can also be used to generate pseudo-random numbers.
JA
Jani 1 year ago
↳ replying to Albina
I agree, block hashes are a reliable source of pseudo-random numbers.
EV
Evangelina 2 years ago
I agree with Buddy, block hashes are secure and unpredictable.
BU
Buddy 2 years ago
I think block hashes are a good way to get pseudo-random numbers.
0/2000 characters

Save Cancel