(v: string)
| 54 | }; |
| 55 | |
| 56 | const onByteOrderSelect = (v: string) => { |
| 57 | if (v === byteOrder) { |
| 58 | return; |
| 59 | } |
| 60 | |
| 61 | setByteOrder(v); |
| 62 | |
| 63 | const current = value; |
| 64 | const bytes = current.match(/[A-Fa-f0-9]{2}/g) || []; |
| 65 | const vv = bytes.reverse().join(""); |
| 66 | |
| 67 | setValue(vv); |
| 68 | updateField(vv); |
| 69 | }; |
| 70 | |
| 71 | const generateRandom = () => { |
| 72 | const cryptoObj = window.crypto || window.Crypto; |
nothing calls this directly
no test coverage detected