Skip to main content

SuiteScript Updates in NetSuite 2023.2

2023.2 SuiteScript |

Refer to the following sections for details on SuiteScript updates for NetSuite 2023.2:

  • 2023.2 SuiteScript Records Browser
  • N/crypto/random Module 2023.2 SuiteScript Records Browser The 2023.2 SuiteScript Records Browser is not yet available.

N/crypto/random Module

The N/crypto/random Module provides cryptographically secure pseudorandom generator methods. This module provides the following methods:

  • random.generateBytes(options) – Generates a cryptographically strong pseudorandom set of bytes.
  • random.generateInt(options) – Generates a cryptographically strong pseudorandom number.
  • random.generateUUID() – Generates a v4 Universally Unique Identifier (UUID) using a cryptographically secure random number generator. With these methods, you can generate a random integer using a cryptographically secure pseudorandom number generator (CSPRNG). These methods should be used over Math.random for any values that should not be predictable such as: key generation, unique IDs, tokens, gambling, or statistical sampling.