mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-27 11:27:04 +02:00
CODEBASE: Add Jsonable Map and Set types, move player.sourceFiles to a map (#473)
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { IPAddress } from "src/Types/strings";
|
||||
import { getRandomByte } from "./helpers/getRandomByte";
|
||||
|
||||
/**
|
||||
* Generate a random IP address
|
||||
* Does not check to see if the IP already exists in the game
|
||||
*/
|
||||
export const createRandomIp = (): string =>
|
||||
`${getRandomByte(99)}.${getRandomByte(9)}.${getRandomByte(9)}.${getRandomByte(9)}`;
|
||||
export const createRandomIp = (): IPAddress =>
|
||||
`${getRandomByte(99)}.${getRandomByte(9)}.${getRandomByte(9)}.${getRandomByte(9)}` as IPAddress;
|
||||
|
||||
Reference in New Issue
Block a user