Questions tagged [u64]
2 questions
1
vote
1 answer
Obtaining a random Integer in AssemblyScript
In the AsemblyScript book it mentions that Math.random() takes a seed and returns an value. I just need a random value. How do I achive that?
I tried
(Math.random() * 0xffffffffffffffff) as u64
(Math.random() *…

Redu
- 25,060
- 6
- 56
- 76
0
votes
2 answers
Getting [u64; 8] for [u8; 32] in Rust
I need a little code snippet and maybe if someone has time an explanation.
I have a hash function that I use using two different programming languages. The results are then compared in Rust.
What I want to get back is [3246643754, 1918081665,…

Dominik
- 123
- 1
- 1
- 6