Highlighted
Knowledge Partner
Knowledge Partner
394 views

Random number generation

Playing with this, I wanted a random number to stick on the end of my
password set test.

So I used, Generic Action, Date actions, said source is Autodetect,
output to a variable is 'ss' so just the second hand as it were.

Thinking about it, if I did that twice, and second time, use the first
variable to add the number of seconds to my new second value, I should
have a barely randomish number. Or at least one that won't repeat very
often. Enough to be useful for a Password history buffer.

Does that make sense?
Labels (1)
0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Random number generation

It's a lot easier to just make a call out to the shell to retrieve
$RANDOM, which I think is always an integer constrained between 0 and 32k.
Want something bigger, do it a couple of times.

I've done similar things (calls to the shell) to pull in an ID from the ID
Provider client. Hopefully there will be a native option in Validator
soon (see IdeaScale as I think I submitted that once upon a time) but
until then just accessing the IDProvider client is trivial.

--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...
0 Likes
Knowledge Partner
Knowledge Partner

Re: Random number generation

ab wrote:

> It's a lot easier to just make a call out to the shell to retrieve
> $RANDOM, which I think is always an integer constrained between 0 and 32k.
> Want something bigger, do it a couple of times.


As long as you are on Linux...

Talked with Kent about supporting ECMAscripts for set-variable and xpath
actions so we can leverage all that stuff that already has been coded for use
in the IDM engine and UserApp. I hope we're going to see that in one of the
next versions. A possibility to call into java from xpath would be another
option, but ECMA supprt includes that anyway.
______________________________________________
https://www.is4it.de/identity-access-management
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.