(self)
| 215 | * @since 2.0.0 |
| 216 | */ |
| 217 | export const random: <A extends object>(self: A) => number = (self) => { |
| 218 | let h = randomHashCache.get(self) |
| 219 | if (h === undefined) { |
| 220 | randomHashCache.set(self, h = optimize((Math.random() * 0x100000000) | 0)) |
| 221 | } |
| 222 | return h |
| 223 | } |
| 224 | |
| 225 | /** |
| 226 | * Combines two hash values into a single hash value. |