Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
sdegutis
9y ago
0 comments
Share
Out of curiosity, what's wrong with that line? Why is it slow?
0 comments
default
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