### Description of the problem Reporting on behalf of @gaoyia If `options.rng()` or `options.random` evaluates to a too-short array (< 16 bytes), the resulting UUID is invalid. ### Recipe for reproducing ```bash import {v4} from 'uuid'; console.log(v4({random: new Uint8Array(15)})); // -> 00000000-0000-4000-8000-0000000000undefined ``` ### Additional information _No response_ ### Environment _No response_