random

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

package random generate a random file name. The random generator use the english disctionary words instead of gibberish strings as the malware could detect high gibberish strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ramdomizer

type Ramdomizer interface {
	Random() string
}

Ramdomizer is an abstract interface for generating random strings.

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(wordsPath string) (Service, error)

New creates a new service.

func (Service) Random

func (s Service) Random() string

Random picks a random strings from the list of english words.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL