Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX Random always executing (IS_CHANGED not working) #478

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions WAS_Node_Suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -10526,10 +10526,6 @@ def text_search_and_replace(self, text, find, replace):
count += 1
return (new_text, count, float(count), int(count))

@classmethod
def IS_CHANGED(cls, **kwargs):
return float("NaN")


# Text Search and Replace By Dictionary

Expand Down Expand Up @@ -10571,10 +10567,6 @@ def text_search_and_replace_dict(self, text, dictionary, replacement_key, seed):

return (new_text, )

@classmethod
def IS_CHANGED(cls, **kwargs):
return float("NaN")


# Text Parse NSP

Expand Down Expand Up @@ -12321,12 +12313,6 @@ def return_randm_number(self, minimum, maximum, seed, number_type='integer'):
# Return number
return (number, float(number), round(number))

@classmethod
def IS_CHANGED(cls, seed, **kwargs):
m = hashlib.sha256()
m.update(seed)
return m.digest().hex()

# TRUE RANDOM NUMBER

class WAS_True_Random_Number:
Expand Down