Skip to content

Conversation

@Bin-QA
Copy link
Contributor

@Bin-QA Bin-QA commented Jan 6, 2020

Add func_lib_get_random go get random value
$# == 2: $1 is max, $2 is min
so the random value will in [ min - max ]
$# == 1: $1 is max
so the random value will in [ 0 - max ]
Other:
get $RANDOM which define by bash, this value will in [ 0 - 32767 ]

Signed-off-by: Wu, BinX binx.wu@intel.com

Add func_lib_get_random go get random value
$# == 2: $1 is max, $2 is min
so the random value will in [ min - max ]
$# == 1: $1 is max
so the random value will in [ 0 - max ]
Other:
get $RANDOM which define by bash, this value will in [ 0 - 32767 ]

Signed-off-by: Wu, BinX <binx.wu@intel.com>
@Bin-QA
Copy link
Contributor Author

Bin-QA commented Jan 6, 2020

#22 Base on this patch to load the Random number

Copy link
Contributor

@xiulipan xiulipan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I thought this would be a simple commit for #22, but anyway is ok.

@Bin-QA Bin-QA merged commit 701d8d2 into thesofproject:master Jan 9, 2020
@Bin-QA Bin-QA deleted the random branch January 14, 2020 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants