Fast pseudo random generator without state in Go. Average execution time is 6ns (github.com) 4 points by miovoid 10y ago ↗ HN
[–] Kristine1975 10y ago ↗ It returns the lowest n bits of the CPU's time stamp counter. x86-64 only. [–] jerf 10y ago ↗ Thank you. miovid/miolini, you need to say that in the documentation. Probably even spell out some of the implications. There may be times when this is useful, but people need to go in with open eyes about what they're getting. [–] miolini 10y ago ↗ I've used it for multithread lock-free queues. It's working well for my case.
[–] jerf 10y ago ↗ Thank you. miovid/miolini, you need to say that in the documentation. Probably even spell out some of the implications. There may be times when this is useful, but people need to go in with open eyes about what they're getting. [–] miolini 10y ago ↗ I've used it for multithread lock-free queues. It's working well for my case.
3 comments
[ 4.4 ms ] story [ 19.1 ms ] thread