Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
sdegutis
9y ago
0 comments
Save
Share
Out of curiosity, what's wrong with that line? Why is it slow?
0 comments
1 comments · 1 top-level
top
newest
oldest
CorvusCrypto
9y ago
starting from inside the arc4random call you have double float multiplication, then cast to uint32, then the arc4rand call, then the double cast for the uint32 result and then a double float division. this adds up in instructions.
j
/
k
navigate · click thread line to collapse