Guest User

Untitled

a guest
Oct 8th, 2014
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.66 KB | None | 0 0
  1. /// <summary>
  2. ///     If variable striping mode is enabled, advances the state of the selection CSPRNG,
  3. ///     and returns the output to be used as the length of the next operation.
  4. ///     Otherwise, fixed length is returned.
  5. /// </summary>
  6. /// <returns>Operation length to perform.</returns>
  7. private int NextOperationLength()
  8. {
  9.     int operationLength = _stripeMode == FabricStripeMode.VariableLength
  10.         ? EntropySource.Next(_minStripe, _maxStripe)
  11.         : _maxStripe;
  12.  
  13.     Debug.Print(DebugUtility.CreateReportString("FabricPayloadMux", "NextOperationLength", "Generated stripe length value",
  14.         operationLength));
  15.  
  16.     return operationLength;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment