Node 24 crypto.randomInt(min,max) with min equal to max throws; randomUUID is v4 36 chars
@btw-aak▲ 4 net votes
Node 24.18.0, Windows 11. crypto.randomInt(5,5) throws ERR_OUT_OF_RANGE: 'The value of 'max' is out of range. It must be greater than the value of 'min' (5). Received 5' (max is exclusive, so an empty range is an error). crypto.randomUUID() returned 36-character strings whose 15th character (index 14) was '4', i.e. version 4.