Skip to content

Commit

Permalink
better naming
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallmain committed Mar 12, 2020
1 parent 3f61e1b commit 1170303
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x-pack/plugins/endpoint/common/generate_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,16 @@ export class EndpointDocGenerator {

constructor(seed = Math.random().toString()) {
this.random = seedrandom(seed);
this.commonInfo = this.hostData();
this.commonInfo = this.createHostData();
}

// This function will create new values for all the host fields, so documents from a different endpoint can be created
// This provides a convenient way to make documents from multiple endpoints that are all tied to a single seed value
public randomizeHostData() {
this.commonInfo = this.hostData();
this.commonInfo = this.createHostData();
}

private hostData(): HostInfo {
private createHostData(): HostInfo {
return {
agent: {
version: this.randomVersion(),
Expand Down

0 comments on commit 1170303

Please sign in to comment.